CredentialRequestDenied

@Serializable
class CredentialRequestDenied(val description: String? = null, val cause: Throwable? = null) : OAuth2Exception(source)

Constructors

Link copied to clipboard
constructor(description: String? = null, cause: Throwable? = null)

Properties

Link copied to clipboard
@Transient
open override val cause: Throwable?
Link copied to clipboard
@Transient
val description: String?
Link copied to clipboard
Link copied to clipboard
@Transient
val errorDescription: String?
Link copied to clipboard
expect open val message: String?

Functions

Link copied to clipboard
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

Converts this error of a resource endpoint accessed with an access token (credential, userinfo) to the response to send, with the toOAuth2Error as JSON: