Ping SDKs

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 PingFederate instance.

Log in as a demo user

  1. In Android Studio, select Run > Run 'ping-oidc.app'.

  2. On the Environment screen, ensure the PingFederate environment you added earlier is correct.

    You can edit any of the values in the app if required.

    android oidc pingfed config
    Figure 1. Confirm the PingFederate connection properties
  3. Tap Centralized Login.

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

    android oidc pingfed login
    Figure 2. Browser launched and redirected to PingFederate
  4. Sign on as a demo user:

    • Name:

    • Password: Ch4ng3it!

    If authentication is successful, the application returns to the access token screen.

  5. Tap the menu icon (), and then tap account_box User Profile:

    android oidc pingfed userinfo
    Figure 3. User info of the demo user
  6. Tap the menu icon (), and then tap logout Logout.

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