OidcClient

class OidcClient

The client used for interacting with an Okta Authorization Server.

This is for low level access, and it's typically preferred to use a Credential, which streamlines usage.

Okta Developer Docs

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun getUserInfo(accessToken: String): OidcClientResult<OidcUserInfo>

Performs the OIDC User Info call, which returns claims associated with the supplied accessToken.

Link copied to clipboard
suspend fun introspectToken(tokenType: TokenType, token: String): OidcClientResult<OidcIntrospectInfo>

Performs a call to the Authorization Server to validate the specified TokenType.

Link copied to clipboard
suspend fun jwks(): OidcClientResult<Jwks>

Performs a call to the Authorization Server to fetch Jwks.

Link copied to clipboard
suspend fun refreshToken(refreshToken: String): OidcClientResult<Token>

Attempt to refresh the token.

Link copied to clipboard
suspend fun revokeToken(token: String): OidcClientResult<Unit>

Attempt to revoke the specified token.

Extensions

Link copied to clipboard
fun OidcClient.createCredentialDataSource(context: Context): CredentialDataSource

Initializes a credential data source using the OidcClient.