ForgeRock Developer Experience

Step 3. Run the sample app and perform centralized login

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

  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 PingOne 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 PingOne environment:

    ios sample app pingone en
    Figure 2. Browser launched and redirected to PingOne
  3. Sign on using the credentials of the demo user:

    • Name: demo

    • Password: Ch4ng3it!

    If authentication is successful, the application displays the tokens issued by PingOne.

  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 PingOne, and revoke the tokens.

    To verify the user is signed out:

    1. In the PingOne administration console, navigate to Directory > Users.

    2. Select the user you signed in as.

    3. From the Sevices dropdown, select Authentication:

      pingone sessions en
      Figure 3. 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.