Ping SDKs

Step 3. Test the app


In this step, run the sample app that you configured in the previous step. The app performs OIDC login to your PingFederate instance.

  1. In Xcode, select Product  Run.

    Xcode launches the sample app in the iPhone simulator.

    ios oidc pingone menu
    Figure 1. iOS OIDC login sample home screen
  2. In the sample app on the iPhone simulator, tap Edit configuration, and verify or edit the configuration you entered in the previous step.

    ios oidc pingfed config
    Figure 2. Verify the configuration settings
  3. Tap Ping OIDC to go back to the main menu, and then tap Launch OIDC.

    You might see a dialog asking if you want to open a browser. If you do, tap Continue.

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

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

    • Name:

    • Password: Ch4ng3it!

    If authentication is successful, the application displays the access token issued by PingFederate.

    ios oidc pingone access token
    Figure 4. Access token after successful authentication
  5. Tap Ping OIDC to go back to the main menu, and then tap User Info. The app displays the user information relating to the access token:

    ios oidc pingone userinfo
    Figure 5. User info relating to the access token
  6. Tap Ping OIDC to go back to the main menu, and then tap Logout.

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