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 PingOne instance.
-
In Xcode, select
.Xcode launches the sample app in the iPhone simulator.
Figure 1. iOS OIDC login sample home screen -
In the sample app on the iPhone simulator, tap Edit configuration, and verify or edit the configuration you entered in the previous step.
Figure 2. Verify the configuration settings -
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 PingOne login UI:
Figure 3. Browser launched and redirected to PingOne -
Sign on as a demo user:
-
Name:
demo
-
Password:
Ch4ng3it!
If authentication is successful, the application displays the access token issued by PingOne.
Figure 4. Access token after successful authentication -
-
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:
Figure 5. User info relating to the access token -
Tap Ping OIDC to go back to the main menu, and then tap Logout.
The app logs the user out of the authorization server.
To verify the user is signed out:
-
In the PingOne administration console, navigate to Directory > Users.
-
Select the user you signed in as.
-
From the Sevices dropdown, select Authentication:
Figure 6. 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.
-