ClientCredentials

data class ClientCredentials(val tokenUrl: String, val refreshUrl: String? = null, val scopes: Map<String, String> = emptyMap()) : AuthScheme.OAuth2.Flow

The client credentials flow.

Constructors

Link copied to clipboard
constructor(tokenUrl: String, refreshUrl: String? = null, scopes: Map<String, String> = emptyMap())

Types

Link copied to clipboard
class Builder

Fluent builder for ClientCredentials, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val refreshUrl: String?

The endpoint for refreshing tokens.

Link copied to clipboard
open override val scopes: Map<String, String>

The scopes to request, each mapped to its description.

Link copied to clipboard

The token endpoint.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.