Table of Contents

Class JwtAuthenticationSectionOptions

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

The configuration layout of the JWT bearer authentication. It is bound from the root Authentication section (or the section name given to AddJwtAuthentication). The *Path properties are the paths of the other configuration sections read during registration.

public class JwtAuthenticationSectionOptions
Inheritance
JwtAuthenticationSectionOptions
Inherited Members

Properties

CertSecurityKeyPath

Gets or sets the path of the section describing an optional certificate used as issuer signing key to validate tokens.

public string? CertSecurityKeyPath { get; set; }

Property Value

string

ClaimsFillerSectionPath

Gets or sets the path of the section holding the ClaimsFillerOptions. The default is Authentication:ClaimsMiddleWare:ClaimsFiller.

public string ClaimsFillerSectionPath { get; set; }

Property Value

string

ClaimsIdentifierSectionPath

Gets or sets the path of the section holding the claim types that identify a user. The default is Authentication:ClaimsIdentifier.

public string ClaimsIdentifierSectionPath { get; set; }

Property Value

string

ClientTokensSectionPath

Gets or sets the path of the section holding the client tokens (see ClientTokenSettingsOptions). The default is Authentication:ClientTokens.

public string ClientTokensSectionPath { get; set; }

Property Value

string

DefaultAuthority

Gets or sets the default authority that issues the tokens. Required.

public AuthorityOptions DefaultAuthority { get; set; }

Property Value

AuthorityOptions

DomainMappingsSectionPath

Gets or sets the path of the section holding the domain mappings. The default is Authentication:DomainsMapping.

public string DomainMappingsSectionPath { get; set; }

Property Value

string

NameClaimType

Gets or sets the claim type holding the name of the user (User.Identity.Name). It is copied to NameClaimType. The default is name.

public string NameClaimType { get; set; }

Property Value

string

OAuth2SettingsSectionPath

Gets or sets the path of the section holding the OAuth2SettingsOption. The default is Authentication:OAuth2.Settings.

public string OAuth2SettingsSectionPath { get; set; }

Property Value

string

RemoteSecretSectionPath

Gets or sets the path of the section holding the remote secrets. The default is Authentication:RemoteSecrets.

public string RemoteSecretSectionPath { get; set; }

Property Value

string

RoleClaimType

Gets or sets the claim type holding the roles of the user. It is copied to RoleClaimType. The default is role.

public string RoleClaimType { get; set; }

Property Value

string

TokenCacheSectionPath

Gets or sets the path of the section holding the TokenCacheOptions. The default is Authentication:TokenCache. The section is optional: when it does not exist, the token cache options keep their defaults (the default cache is used).

public string TokenCacheSectionPath { get; set; }

Property Value

string

ValidateAuthority

Gets or sets a value indicating whether the issuer of the token must be validated. It is copied to ValidateAuthority. The default is true. When true, the issuer must be Issuer of the default authority when it is set, or the issuer read from its metadata otherwise.

public bool ValidateAuthority { get; set; }

Property Value

bool