Table of Contents

Class ClientTokenSettingsOptions

Namespace
Arc4u.OAuth2.Options
Assembly
Arc4u.OAuth2.AspNetCore.dll

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

string

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

AuthorityOptions

Scenario

Discriminator. The key resolving an IClientTokenScenario (e.g. "UserPassword", "ClientCredentials").

public string Scenario { get; set; }

Property Value

string

Scopes

The scopes requested. Defaults to openid when none is provided.

public List<string> Scopes { get; set; }

Property Value

List<string>

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; }

Property Value

Dictionary<string, string>