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();Content copied to clipboard
Must be closed when no longer needed to release coroutine resources.
Parameters
delegate
the underlying Kotlin KotlinRedirectEndSessionFlow instance.
Constructors
Link copied to clipboard
Creates a RedirectEndSessionFlow backed by the given KmpOAuth2Client.
Functions
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.