OAuth2Client
Deprecated
The Android-only OAuth2Client is deprecated in favor of the KMP variant, which works on Android and JVM. Build one via OAuth2ClientBuilder.create(issuerUrl, clientId, scope) and use com.okta.authfoundation.client.kmp.OAuth2Client instead. This class will be removed in a future major release.
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.
Functions
Performs the OIDC User Info call, which returns claims associated with the supplied accessToken.
Performs a call to the Authorization Server to validate the specified TokenType.
Performs a call to the Authorization Server to fetch Jwks.
Attempt to refresh the token.
Attempt to refresh the token, forwarding additional form body parameters to the token endpoint.
Attempt to revoke the specified token.