Step 3. Test the app
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 Run > Run 'ping-oidc.app'.
-
On the Environment screen, ensure the PingOne environment you added earlier is correct.
You can edit any of the values in the app if required.
Figure 1. Confirm the PingOne connection properties -
Tap Centralized Login.
The app launches a web browser and redirects to your PingOne environment:
Figure 2. Browser launched and redirected to PingOne -
Sign on as a demo user:
-
Name:
demo
-
Password:
Ch4ng3it!
If authentication is successful, the application returns to the access token screen.
-
-
Tap the menu icon (), and then tap User Profile:
Figure 3. User info of the demo user -
Tap the menu icon (), and then tap Logout.
The app logs the user out of PingOne, revokes the tokens, and returns to the config page.
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 4. 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.
-