RedirectEndSessionFlow

A Java-friendly wrapper around the Kotlin KotlinRedirectEndSessionFlow.

This class combines the start and resume steps into a single start method that uses a BrowserRedirectHandler to open the browser and capture the redirect callback. Java consumers can use CompletableFuture without dealing with Kotlin coroutines.

Typical Java usage:

RedirectEndSessionFlow flow = new RedirectEndSessionFlow(kmpClient);
flow.start(idToken, redirectUrl, browserHandler).get();
flow.close();

Must be closed when no longer needed to release coroutine resources.

Parameters

delegate

the underlying Kotlin KotlinRedirectEndSessionFlow instance.

Constructors

Link copied to clipboard
constructor(delegate: RedirectEndSessionFlow)
constructor(client: OAuth2Client)

Creates a RedirectEndSessionFlow backed by the given KmpOAuth2Client.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun start(idToken: String, redirectUrl: String, browserRedirectHandler: BrowserRedirectHandler, extraRequestParameters: Map<String, String> = emptyMap()): CompletableFuture<Unit>

Performs the full redirect end-session flow asynchronously.