Interface ITokenValidationDelegates
Delegates for the Microsoft.IdentityModel.Tokens.TokenValidationParameters
.
Namespace: ComponentSpace.OpenID.Security
Assembly: ComponentSpace.OpenID.dll
Syntax
public interface ITokenValidationDelegates
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
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
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. |