DPoP Proof Validator
Duende.IdentityServer.Validation.IDPoPProofValidator
Section titled “Duende.IdentityServer.Validation.IDPoPProofValidator”The IDPoPProofValidator interface is used to validate DPoP proof tokens
submitted to IdentityServer.
A default implementation is provided and can be overridden as necessary.
IDPoPProofValidator APIs
Section titled “IDPoPProofValidator APIs”-
ValidateAsyncValidates a DPoP proof token with the provided
DPoPProofValidatonContextfor the current request. Returns aDPoPProofValidatonResultobject.
Task<DPoPProofValidatonResult> ValidateAsync(DPoPProofValidatonContext context, CancellationToken ct);DPoPProofValidatonContext
Section titled “DPoPProofValidatonContext”Models the information used to validate a DPoP proof token.
-
ExpirationValidationModeEnum setting to control validation for the DPoP proof token expiration. Supports both the client-generated
iatvalue and/or the server-generatednoncevalue. Defaults toDPoPTokenExpirationValidationMode.Iat. -
ClientClockSkewClock skew used in validating the DPoP proof token
iatclaim value. Defaults to 5 minutes. -
UrlThe HTTP URL to validate in the DPoP proof.
-
MethodThe HTTP method to validate in the DPoP proof.
-
ProofTokenThe DPoP proof token string to validate.
-
ValidateAccessTokenIf
true, the access token will also be validated against the proof. -
AccessTokenThe access token string to validate when
ValidateAccessTokenistrue. -
AccessTokenClaimsThe claims associated with the access token, used when
ValidateAccessTokenistrue. Provided separately fromAccessTokenbecause resolving claims from a reference token may be expensive.
DPoPProofValidationResult
Section titled “DPoPProofValidationResult”Models the result of a DPoP proof token validation.
-
IsErrorFlag to indicate if validation failed.
-
ErrorThe error code if the validation failed.
-
ErrorDescriptionThe error description if the validation failed.
-
JsonWebKeyThe serialized JWK from the validated DPoP proof token.
-
JsonWebKeyThumbprintThe JWK thumbprint from the validated DPoP proof token.
-
ConfirmationThe ‘cnf’ value for the DPoP proof token.
-
PayloadThe payload values of the DPoP proof token.
-
TokenIdThe ‘jti’ value read from the payload.
-
NonceThe ‘nonce’ value read from the payload.
-
IssuedAtThe ‘iat’ value read from the payload.
-
ServerIssuedNonceThe ‘nonce’ value issued by the server that should be emitted on the response.