TokenEndpointRequest

class TokenEndpointRequest(val kind: TokenEndpointRequestKind, val endpointUrl: String, val issuer: String, val formParameters: Map<String, String>, val dpopProof: String, val clientAuthKid: String? = null, val outcomeInDoubt: Boolean = false)

One client-authenticated OAuth request.

Constructors

Link copied to clipboard
constructor(kind: TokenEndpointRequestKind, endpointUrl: String, issuer: String, formParameters: Map<String, String>, dpopProof: String, clientAuthKid: String? = null, outcomeInDoubt: Boolean = false)

Properties

Link copied to clipboard

The id of the client key this session or sign-in is bound to, if one has been recorded. A relay must sign with exactly this key or refuse: the server deletes a session presented with another key.

Link copied to clipboard

The DPoP proof JWT, made for endpointUrl.

Link copied to clipboard

The authorization server's endpoint for this request.

Link copied to clipboard

The application/x-www-form-urlencoded body, including client_id.

Link copied to clipboard

The authorization server's issuer identifier. A relaying transport should send this, not endpointUrl, so the relay can look the endpoint up itself rather than trust a URL from a device.

Link copied to clipboard
Link copied to clipboard

true when an earlier attempt with this same refresh token ended without a definitive answer. The token may already be spent, so the request must not be sent by any route that cannot recover the earlier response. Only ever true for TokenEndpointRequestKind.Refresh and only when TokenEndpointTransport.tracksRefreshOutcome is set.