OAuth2

data class OAuth2(val flows: AuthScheme.OAuth2.Flows, val issuerUrl: String? = null, val description: String? = null) : AuthScheme

An OAuth2 scheme: the flows the service supports, with their endpoints and scopes.

Constructors

Link copied to clipboard
constructor(flows: AuthScheme.OAuth2.Flows, issuerUrl: String? = null, description: String? = null)

Types

Link copied to clipboard
class Builder

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

Link copied to clipboard
object Companion
Link copied to clipboard
sealed interface Flow

An OAuth2 flow: its endpoints and the scopes to request.

Link copied to clipboard
data class Flows(val implicit: AuthScheme.OAuth2.Flow.Implicit? = null, val password: AuthScheme.OAuth2.Flow.Password? = null, val clientCredentials: AuthScheme.OAuth2.Flow.ClientCredentials? = null, val authorizationCode: AuthScheme.OAuth2.Flow.AuthorizationCode? = null)

The OAuth2 flows a service supports. Each property is set when the service supports that flow.

Properties

Link copied to clipboard

A description of the scheme.

Link copied to clipboard

The OAuth2 flows the service supports.

Link copied to clipboard

The authorization server's issuer URL, from which its endpoints can be discovered.

Link copied to clipboard
open override val type: String

The scheme's OpenAPI type, such as apiKey or http.

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.