ResourceOwnerFlow

An authentication flow class that implements the Resource Owner Flow exchange.

This simple authentication flow permits a user to authenticate using a simple username and password. As such, the configuration is straightforward.

Important: Resource Owner authentication does not support MFA or other more secure authentication models, and is not recommended for production applications.

Constructors

Link copied to clipboard
constructor()

Initializes a resource owner flow.

constructor(oidcConfiguration: OidcConfiguration)

Initializes a resource owner flow using the OidcConfiguration.

constructor(client: OAuth2Client)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun start(username: String, password: String, scope: String = client.configuration.defaultScope): OAuth2ClientResult<Token>

Initiates the Resource Owner flow.