TokenEndpointResponse

class TokenEndpointResponse(val status: Int, val body: String, val dpopNonce: String? = null, val serverDate: String? = null, val origin: TokenEndpointResponseOrigin = TokenEndpointResponseOrigin.AuthorizationServer, val clientAuthKid: String? = null, val clientAuthMethod: String? = null, val replayed: Boolean = false)

The answer to a TokenEndpointRequest.

Constructors

Link copied to clipboard
constructor(status: Int, body: String, dpopNonce: String? = null, serverDate: String? = null, origin: TokenEndpointResponseOrigin = TokenEndpointResponseOrigin.AuthorizationServer, clientAuthKid: String? = null, clientAuthMethod: String? = null, replayed: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard

The id of the client key the request was signed with, when a relay performed client authentication.

Link copied to clipboard

The client's registered token_endpoint_auth_method as the relay last saw it ("none" or "private_key_jwt"), or null when unknown.

Link copied to clipboard
Link copied to clipboard

Whether the authorization server said this. Only an authorization-server invalid_grant ends a session; a transport that cannot tell must report TokenEndpointResponseOrigin.Mediator.

Link copied to clipboard

true when a relay returned a response it had stored for a refresh token that was already spent, rather than a fresh one.

Link copied to clipboard

The authorization server's Date header, used to correct clock skew in later DPoP proofs.

Link copied to clipboard
val status: Int