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 server.

Log in as a demo user

  1. In Xcode, select Product  Run.

    Xcode launches the sample app in the iPhone simulator.

  2. In the sample app on the iPhone simulator, in the Select an action menu, select Login with Browser, and then click Perform Action.

    ios samples app login with browser en
    Figure 1. Select the PingFederate environment
    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 environment:

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

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

    pingfed ios sample app tokens en
    Figure 3. Sample app showing the token returned from PingFederate
  4. Tap Login with Browser to open the drop-down menu, select User Logout, and then tap Perform Action.

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