Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Duende.​IdentityServer.​Validation.​ITokenValidator
Assembly: Duende.IdentityServer
Interface for the token validator
Methods
System.​Threading.​Tasks.​Task<​TokenValidationResult>
ValidateAccessTokenAsync​(string token,
string expectedScope = null)
Validates an access token.
token
The access token.
expectedScope
The expected scope.
System.​Threading.​Tasks.​Task<​TokenValidationResult>
ValidateIdentityTokenAsync​(string token,
string clientId = null,
bool validateLifetime = true)
Validates an identity token.
token
The token.
clientId
The client identifier.
validateLifetime
if set to <c>true</c> the lifetime gets validated. Otherwise not.