Run the application.
Click the Login button to initiate the authentication process:
AM responds with the first challenge, and the fragment displays the text fields for collecting the username and password.
Enter the username and password in the text fields provided.
Click Next to submit the content of the text fields.
Retrieves the callbacks from the
Sets the value of the callbacks to the value of the text fields.
Moves to the next
Node, passing the process to the
MainActivityclass, which implements the
As this is the only challenge, authentication is successful:
In the application log output under View > Tool Window > Logcat,
filter the output on
com.example.forgerocksdktutorial to see messages from your app.
Notice the following additional points:
AM includes the SSO token in the response data.
The SDK uses the
authorizeendpoint along with the SSO token and exchanges it with the authorization code.
The request redirects to the
redirect_uri. The SDK validates that information against the
redirect_urifrom the configuration file, and intercepts the authorization code.
The SDK then invokes the
access_tokenendpoint with the authorization code, and sends the required information to the server.
AM returns an access token, scopes, and an ID token.
You have now created an app that can successfully authenticate using your own UI components.