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.
Types
Functions
Link copied to clipboard
suspend fun getUserInfo(accessToken: String): OidcClientResult<OidcUserInfo>
Content copied to clipboard
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>
Content copied to clipboard
Performs a call to the Authorization Server to validate the specified TokenType.
Link copied to clipboard
Performs a call to the Authorization Server to fetch Jwks.
Link copied to clipboard
Attempt to refresh the token.
Link copied to clipboard
Attempt to revoke the specified token.
Extensions
Link copied to clipboard
fun OidcClient.createCredentialDataSource(storage: TokenStorage): CredentialDataSource
Content copied to clipboard
fun OidcClient.createCredentialDataSource(context: Context): CredentialDataSource
Content copied to clipboard
Initializes a credential data source using the OidcClient.