Step 3. Run the sample app and perform centralized login
In the following procedure, you run the sample app that you configured in the previous step. The app performs a centralized login on your PingOne instance.
Log in as a demo user
-
In Android Studio, select
. -
On the Environment screen, ensure the PingOne environment you added in the previous step is selected.
Figure 1. Select the PingOne environment -
Tap the menu icon (), and then tap Centralize Login:
Figure 2. From the menu, select Centralize Login.The app launches a web browser and redirects to your PingOne environment:
Figure 3. Browser launched and redirected to PingOne -
Sign on using the credentials of the demo user:
-
Name:
demo
-
Password:
Ch4ng3it!
If authentication is successful, the application returns to the user info screen.
-
-
Tap Show Userinfo to display the details of the token issues to the demo user:
Figure 4. User info of the demo user -
Tap the menu icon (), and then tap Logout.
The app briefly opens a browser to log the user out of PingOne, and revoke the tokens.
To verify the user is logged out:
-
In the PingOne administration console, navigate to Directory > Users.
-
Select the user you signed in as.
-
From the Sevices dropdown, select Authentication:
Figure 5. Checking a user’s sessions in PingOne.The Sessions section displays any existing sessions the user has, and whether they originate from a mobile device.
-