UnsupportedGrantType
@Serializable
RFC 6749 5.2: The authorization grant type is not supported by the authorization server.
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: