Interface ITokenValidator
- Namespace
- Duende.IdentityServer.Validation
- Assembly
- Duende.IdentityServer.dll
Interface for the token validator
public interface ITokenValidator
Methods
ValidateAccessTokenAsync(string, string)
Validates an access token.
Task<TokenValidationResult> ValidateAccessTokenAsync(string token, string expectedScope = null)
Parameters
Returns
ValidateIdentityTokenAsync(string, string, bool)
Validates an identity token.
Task<TokenValidationResult> ValidateIdentityTokenAsync(string token, string clientId = null, bool validateLifetime = true)
Parameters
token
stringThe token.
clientId
stringThe client identifier.
validateLifetime
boolif set to
true
the lifetime gets validated. Otherwise not.