UseAttestationChallenge
@Serializable
Properties
Link copied to clipboard
Sent as HTTP header OAuth-Client-Attestation-Challenge by at.asitplus.wallet.lib.oauth2.toHttpResponse and at.asitplus.wallet.lib.oauth2.toResourceServerHttpResponse.
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Converts this error of an authorization server endpoint (pushed authorization request, token, token introspection, attestation challenge, authorization) to the response to send: status 400 with the toOAuth2Error as JSON (RFC 6749 5.2), including the header DPoP-Nonce for OAuth2Exception.UseDpopNonce (RFC 9449 8.) and OAuth-Client-Attestation-Challenge for OAuth2Exception.UseAttestationChallenge (OA-ABCA 7.4).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun OAuth2Exception.toResourceServerHttpResponse(authorizationHeader: String?): PreparedHttpResponse
Converts this error of a resource endpoint accessed with an access token (credential, userinfo) to the response to send, with the toOAuth2Error as JSON: