AuthenticationCore
Authentication core class which has the core functionality of the Authenticator SDK.
Parameters
Provider to get the updated AuthenticationCoreConfig based on the discovery response. AuthenticationCoreConfigProvider
Functions
Send the authentication parameters to the authentication endpoint and get the next step of the authentication flow. If the authentication flow has only one step, this method will return the success response of the authentication flow if the authentication is successful.
Authorize the application. This method will call the authorization endpoint and get the authenticators available for the first step in the authentication flow.
Clear the tokens from the token data store.
Exchange the authorization code for the access token.
Get the access token from the token data store.
Get the access token expiration time from the token data store.
Get the basic user information of the authenticated.
Get the decoded ID token
Get the authenticator details of the given authenticator. This should call before authenticating with the any authenticator.
Get the ID token from the token data store.
Get the refresh token from the token data store.
Get the TokenState from the data store.
Perform an action with the tokens. If the token is expired, it will perform the refresh the tokens, and then perform the action. This will also update the token in the data store as well.
Perform the refresh token grant.
Save the TokenState to the data store.
Validate the access token, by checking the expiration time of the access token, and by checking if the access token is null or empty.