---
title: Step 3. Test the app
description: Provides instructions on how to test the sample app for the iOS OIDC sign-on module tutorial with PingOne.
component: orchsdks
page_id: orchsdks:oidc:try-it-out/ios/pingone/03_running-sample-pingone
canonical_url: https://developer.pingidentity.com/orchsdks/oidc/try-it-out/ios/pingone/03_running-sample-pingone.html
revdate: Thu, 2 Apr 2026 11:33:37 +0100
keywords: ["OAuth 2.0", "OpenID Connect", "Tutorial", "Source Code", "Integration", "SDK", "iOS", "PingOne", "test app"]
---

# Step 3. Test the app

[icon: circle-check, set=far]PingOne [icon: apple, set=fab]iOS

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

* [Download](01_download-sample-repo.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:

   ![Starting the 'swiftui-oidc-module' sample app on iOS](../../../_images/sample-apps/ios-swiftui-oidc-module-aic-menu.png)Figure 1. Starting the 'swiftui-oidc-module' sample app on iOS

2. In the sample app on the iPhone simulator, tap [icon: user-key, set=fas]Launch OIDC Login, then tap **Start OIDC Login**.

   The iPhone emulator launches the browser and starts the authentication journey.

   |   |                                                                                       |
   | - | ------------------------------------------------------------------------------------- |
   |   | You might see a dialog asking if you want to open a browser. If you do, tap Continue. |

   ![Signing on in the 'swiftui-oidc-module' sample app](../../../_images/sample-apps/ios-swiftui-oidc-module-pingone-login.png)Figure 2. Signing on in the 'swiftui-oidc-module' sample app

3. Sign on as a demo user:

   * Name: `demo`

   * Password: `Ch4ng3it!`

   If authentication is successful the app displays an **Authentication Successful** message.

4. Tap **View Access Token** to view the access token, and refresh token, if issued:

   ![Access token in the 'swiftui-oidc-module' sample app](../../../_images/sample-apps/ios-swiftui-oidc-module-pingone-access-token.png)Figure 3. Access token in the 'swiftui-oidc-module' sample app

5. Tap [icon: chevron-left, set=fas, size=xs]Back to return to the previous screen, tap [icon: chevron-left, set=fas, size=xs]Back again to go to the main menu, and then tap **[icon: circle-user, set=fas]User Info**.

   The app displays the user information relating to the access token:

   ![User info in the 'swiftui-oidc-module' sample app](../../../_images/sample-apps/ios-swiftui-oidc-module-pingone-user-info.png)Figure 4. User info in the 'swiftui-oidc-module' sample app

6. Tap [icon: chevron-left, set=fas, size=xs]Back to go back to the main menu, tap [icon: right-from-bracket, set=fas]Logout, and then tap **Proceed to Logout**.

   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 Services dropdown, select Authentication:

      ![pingone sessions en](../../../../_images/pingone-sessions-en.png)Figure 5. 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. |
