DirectAuthenticationFlow

The primary interface for interacting with the Okta Direct Authentication API.

This interface defines the contract for initiating an authentication flow. An instance is created via com.okta.directauth.DirectAuthenticationFlowBuilder.create. Kotlin callers should prefer this coroutine-based API; Java callers should use com.okta.directauth.jvm.DirectAuthenticationFlow, which exposes CompletableFuture-based methods.

Properties

Link copied to clipboard
abstract val authenticationState: ERROR CLASS: Symbol not found for StateFlow<com/okta/directauth/model/DirectAuthenticationState>

A StateFlow emitting the current DirectAuthenticationState; collect it to observe every transition driven by start(), reset(), and the various proceed()/challenge()/resume() calls. Starts at DirectAuthenticationState.Idle.

Functions

Link copied to clipboard

Resets the direct authentication flow.

Link copied to clipboard
abstract suspend fun start(loginHint: String, primaryFactor: PrimaryFactor): DirectAuthenticationState

Starts the direct authentication flow with an initial factor.