Show / Hide Table of Contents

Class TokenValidationDelegates

Delegates for the Microsoft.IdentityModel.Tokens.TokenValidationParameters.

Inheritance
System.Object
TokenValidationDelegates
Implements
ITokenValidationDelegates
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ComponentSpace.OpenID.Security
Assembly: ComponentSpace.OpenID.dll
Syntax
public class TokenValidationDelegates : ITokenValidationDelegates

Constructors

TokenValidationDelegates(IConfigurationResolver, ILoggerFactory)

Initializes a new instance of the TokenValidationDelegates class.

Declaration
public TokenValidationDelegates(IConfigurationResolver configurationResolver, ILoggerFactory loggerFactory)
Parameters
Type Name Description
IConfigurationResolver configurationResolver

The configuration resolver.

Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

The logger factory.

Properties

ConfigurationName

Gets or sets the optional OpenID configuration name.

For most applications, a single OpenID configuration is used and the OpenID configuration name is not required. For multi-tenanted applications and other special use cases with multiple OpenID configurations, the name specifies the configuration to use.

Declaration
public virtual string ConfigurationName { get; set; }
Property Value
Type Description
System.String

The configuration name.

Methods

IssuerSigningKeyResolver(String, SecurityToken, String, TokenValidationParameters)

The IssuerSigningKeyResolver delegate that returns the security keys used for signature validation.

Declaration
public virtual IEnumerable<SecurityKey>? IssuerSigningKeyResolver(string token, SecurityToken securityToken, string kid, TokenValidationParameters validationParameters)
Parameters
Type Name Description
System.String token

The token that's being validated.

SecurityToken securityToken

The security token that's being validated.

System.String kid

The key identifier.

TokenValidationParameters validationParameters

The validation parameters.

Returns
Type Description
System.Nullable<IEnumerable<SecurityKey>>

The security key to use when validating the signature.

Implements

ITokenValidationDelegates
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2022. All rights reserved.