Class ClientTokenSettingsOptions
Unified configuration entry for the Authentication:ClientTokens section.
Carries only the fields common to every client token acquisition scenario. The Scenario property is the discriminator that selects the IClientTokenScenario responsible for validating this entry and projecting it into a SimpleKeyValueSettings.
All scenario-specific values (ClientId, ClientSecret, User, Password, Credential, …) live in the open Settings bag. The selected scenario claims the keys it consumes; every remaining key is forwarded verbatim to the token endpoint as an extra request parameter.
public class ClientTokenSettingsOptions
- Inheritance
-
ClientTokenSettingsOptions
- Inherited Members
Properties
AuthenticationType
The authentication type (OAuth2Bearer, Cookies, Inject, …). Defaults to InjectAuthenticationType.
public string AuthenticationType { get; set; }
Property Value
Authority
The STS authority. When present, it is registered under the entry key and referenced by the produced settings.
public AuthorityOptions? Authority { get; set; }
Property Value
Scenario
Discriminator. The key resolving an IClientTokenScenario (e.g. "UserPassword", "ClientCredentials").
public string Scenario { get; set; }
Property Value
Scopes
The scopes requested. Defaults to openid when none is provided.
public List<string> Scopes { get; set; }
Property Value
Settings
Open bag of scenario-specific values. The selected scenario consumes the keys it knows (see KnownKeys); any other key is forwarded to the token endpoint as an extra request parameter.
public Dictionary<string, string> Settings { get; set; }