OAuth2Client
Class to handle OAuth2 related endpoint
Properties
Functions
Link copied to clipboard
End the user session with end session endpoint.
Link copied to clipboard
open fun exchangeToken(@NonNull token: SSOToken, @NonNull additionalParameters: Map<String, String>, listener: FRListener<AccessToken>)
Sends an authorization request to the authorization service.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun refresh(@Nullable sessionToken: SSOToken, @NonNull refreshToken: String, listener: FRListener<AccessToken>)
Refresh the Access Token with the provided Refresh Token
Link copied to clipboard
Revoke the AccessToken, to revoke the access token, first look for refresh token to revoke, if not provided, will revoke with the access token.
open fun revoke(@NonNull accessToken: AccessToken, useRefreshToken: Boolean, listener: FRListener<Void>)
Revoke the AccessToken, to revoke the access token, first look for refresh token to revoke, if not provided or useRefreshToken = false, will revoke with the access token.
Link copied to clipboard
open fun token(@Nullable sessionToken: SSOToken, @NonNull code: String, pkce: PKCE, additionalParameters: Map<String, String>, handler: OAuth2ResponseHandler, listener: FRListener<AccessToken>)
Sends an token request to the authorization service.