ResourceOwnerFlow
interface ResourceOwnerFlow
An authentication flow that implements the Resource Owner Password Grant.
This simple authentication flow permits a user to authenticate using a username and password.
Important: Resource Owner authentication does not support MFA or other more secure authentication models, and is not recommended for production applications.
Example usage:
val flow = ResourceOwnerFlowImpl(client)
val result = flow.start("user@example.com", "password", "openid profile")
result.onSuccess { tokenInfo -> println("Access token: ${tokenInfo.accessToken}") }
result.onFailure { error -> println("Authentication failed: $error") }Content copied to clipboard