---
title: Step 3. Test the app
description: Prepare
component: sdks
version: latest
page_id: sdks:oidc:tutorials/ios/pingone/03_running-sample-pingone
canonical_url: https://docs.pingidentity.com/sdks/latest/oidc/tutorials/ios/pingone/03_running-sample-pingone.html
revdate: Thu, 24 Apr 2025 14:44:20 +0100
keywords: ["OAuth 2.0", "OpenID Connect", "Tutorial", "Source Code", "Integration", "SDK", "iOS"]
---

# Step 3. Test the app

* [Prepare](00_before-you-begin.html)

* [Download](01_downloading-forgerocksdk.html)

* [Configure](02_configuring-sample-for-pingone.html)

* **Run**

***

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

1. In Xcode, select **Product** [icon: angle-right, set=fa] **Run**.

   Xcode launches the sample app in the iPhone simulator.

   ![ios oidc pingone menu](../../../_images/ios_oidc_pingone_menu.png)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 pingone config](../../../_images/ios_oidc_pingone_config.png)Figure 2. Verify the configuration settings

3. Tap [icon: chevron-left, set=fas, size=xs]Ping OIDC to go back to the main menu, and then tap **Launch OIDC Redirect Login**.

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

   ![ios oidc pingone login](../../../_images/ios_oidc_pingone_login.png)Figure 3. Browser launched and redirected to PingOne

4. Sign on as a demo user:

   * Name: `demo`

   * Password: `Ch4ng3it!`

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

   ![ios oidc pingone access token](../../../_images/ios_oidc_pingone_access_token.png)Figure 4. Access token after successful authentication

5. Tap [icon: chevron-left, set=fas, size=xs]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](../../../_images/ios_oidc_pingone_userinfo.png)Figure 5. User info relating to the access token

6. Tap [icon: chevron-left, set=fas, size=xs]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: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](../../../../_images/pingone-sessions-en.png)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. |
