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
-
In Xcode, select
.Xcode launches the sample app in the iPhone simulator.
-
In the sample app on the iPhone simulator, in the Select an action menu, select Login with Browser, and then click Perform Action.
Figure 1. Select the PingFederate environmentYou 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:
Figure 2. Browser launched and redirected to PingFederate -
Sign on using your PingFederate credentials
If authentication is successful, the application displays the token issued by PingFederate:
Figure 3. Sample app showing the token returned from PingFederate -
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.