DirectTokenEndpointTransport

class DirectTokenEndpointTransport(httpClient: HttpClient, singleUseHttpClient: HttpClient = httpClient) : TokenEndpointTransport

Posts each request straight to the authorization server — the behaviour of a public client.

Parameters

httpClient

Used for the pushed authorization request and revocation.

singleUseHttpClient

Used for the code exchange and the refresh, which spend something single-use. Pass a client that never silently re-sends a request (with OkHttp, retryOnConnectionFailure(false)) and that has a request timeout. Defaults to httpClient.

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, singleUseHttpClient: HttpClient = httpClient)

Properties

Link copied to clipboard

Whether a refresh sent through this transport can end with an unknown outcome that a different route must not retry.

Functions

Link copied to clipboard
open suspend override fun send(request: TokenEndpointRequest): TokenEndpointResponse