Class OpenIdSettingsOption
The settings of the OpenID Connect client. Bound from the Authentication:OpenId.Settings section by default.
They are registered as the SimpleKeyValueSettings named Cookies (see OpenIdSettingsExtension).
public class OpenIdSettingsOption
- Inheritance
-
OpenIdSettingsOption
- Inherited Members
Properties
Audiences
Gets or sets the accepted audiences of the access token. At least one is required when ValidateAudience is true.
public List<string> Audiences { get; set; }
Property Value
Authority
If null default authority is used!
public AuthorityOptions? Authority { get; set; }
Property Value
ClientId
Gets or sets the client id registered in the identity provider. Required.
public string ClientId { get; set; }
Property Value
ClientSecret
Gets or sets the client secret registered in the identity provider.
public string ClientSecret { get; set; }
Property Value
ProviderId
Gets or sets the key of the token provider that gets the token of the user. The default is Oidc.
public string ProviderId { get; set; }
Property Value
Scopes
Gets or sets the scopes requested to the identity provider. At least one is required.
public List<string> Scopes { get; set; }
Property Value
ValidateAudience
Gets or sets a value indicating whether the audience of the id token is validated by the OpenID Connect handler. The default is true. When false, the Audiences key is not registered in the settings and the audience of the access token received from the token endpoint is not validated either.
public bool ValidateAudience { get; set; }