Agent

interface Agent<T>

The Agent is an interface that is used to authenticate and end a session with an OpenID Connect provider.

T is the configuration object that is used to configure the Agent.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun authorize(oidcConfig: OidcConfig<T>): AuthCode

Authorize the Agent with the OpenID Connect provider. Before returning the AuthCode, the agent should verify the response from the OpenID Connect provider.

Link copied to clipboard
abstract fun config(): () -> T

Provides the configuration object for the Agent.

Link copied to clipboard
abstract suspend fun endSession(oidcConfig: OidcConfig<T>, idToken: String): Boolean

End the session with the OpenID Connect provider. Best effort is made to end the session.