Ping SDKs

Step 3. Test the app

In the following procedure, you run the sample app that you configured in an earlier step. The app performs a centralized login on your PingFederate instance.

Log in as a demo user

  1. In Android Studio, select Run  Run 'app'.

  2. On the Environment screen, select the PingFederate .well-known endpoint you added in the earlier step.

    pingfed sample app env en
    Figure 1. Select the PingFederate environment
  3. Tap the menu icon (), and then tap Centralize Login:

    android sample app centralized login en
    Figure 2. From the menu, select Centralize Login.

    The app launches a web browser and redirects to your PingFederate environment:

    pingfed sample app login en
    Figure 3. Browser launched and redirected to PingFederate
  4. Sign on using your PingFederate credentials

    If authentication is successful, the application returns to the user info screen.

  5. Tap Show Userinfo to display the details of the token issues to the demo user:

    android sample app pingfed userinfo en
    Figure 4. User info of the demo user
  6. Tap the menu icon (), and then tap Logout.

    The app opens a browser momentarily to log the user out of PingFederate, and revoke the tokens.