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.
class Duende.​IdentityServer.​Validation.​DefaultDPoPProofValidator
Assembly: Duende.IdentityServer
Inheritance: object → DefaultDPoPProofValidator
Implemented Interfaces
Default implementation of IDPoPProofValidator
Fields and Constants
protected readonly
Configuration.​IdentityServerOptions
Options
The options
protected readonly
IClock
Clock
The clock
protected
Services.​IReplayCache
ReplayCache
The replay cache
protected readonly
Microsoft.​Extensions.​Logging.​ILogger
Logger
The logger
Properties
protected
Microsoft.​AspNetCore.​DataProtection.​IDataProtector
DataProtector
The data protection provider
Methods
public
System.​Threading.​Tasks.​Task<​DPoPProofValidatonResult>
ValidateAsync​(DPoPProofValidatonContext context)
ValidateHeaderAsync​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Validates the header.
ValidateSignatureAsync​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Validates the signature.
ValidatePayloadAsync​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Validates the payload.
ValidateReplayAsync​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Validates is the token has been replayed.
ValidateFreshnessAsync​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Validates the freshness.
ValidateIatAsync​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Validates the freshness of the iat value.
ValidateNonceAsync​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Validates the freshness of the nonce value.
protected
string
CreateNonce​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Creates a nonce value to return to the client.
protected
System.​Threading.​Tasks.​ValueTask<​long>
GetUnixTimeFromNonceAsync​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result)
Reads the time the nonce was created.
protected
bool
IsExpired​(DPoPProofValidatonContext context,
DPoPProofValidatonResult result,
System.​TimeSpan clockSkew,
long issuedAtTime)
Validates the expiration of the DPoP proof.
Returns true if the time is beyond the allowed limits, false otherwise.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object