---
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 Advanced Identity Cloud.
component: orchsdks
page_id: orchsdks:oidc:try-it-out/ios/aic/03_test-the-app
canonical_url: https://developer.pingidentity.com/orchsdks/oidc/try-it-out/ios/aic/03_test-the-app.html
revdate: Thu, 2 Apr 2026 11:33:37 +0100
keywords: ["OAuth 2.0", "OpenID Connect", "Tutorial", "Source Code", "Integration", "SDK", "iOS", "Advanced Identity Cloud", "test app"]
---

# Step 3. Test the app

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

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

* [Download](01_download-sample-repo.html)

* [Configure](02_configuring-connection-properties.html)

* **Run**

In this step, run the sample app that you configured in the previous step. The app performs OIDC login to your PingOne Advanced Identity Cloud 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-aic-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-aic-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-aic-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 logs the user out of the authorization server, revokes OAuth 2.0 tokens, and returns to the OIDC launch page.

   It also outputs the network calls it makes to sign out to the Xcode console:

   ```text
   [Ping SDK 2.0.0] SignOff...
   [Ping SDK 2.0.0] ⬆
   Request URL: https://openam-docs.forgeblocks.com:443/am/oauth2/alpha/token/revoke
   Request Method: POST
   Request Headers: ["Content-Type": "application/x-www-form-urlencoded", "x-requested-with": "ping-sdk", "x-requested-platform": "ios"]
   [Ping SDK 2.0.0] ⬆
   Request URL: https://openam-docs.forgeblocks.com:443/am/oauth2/alpha/connect/endSession?id_token_hint=eyJ0eXAiOiJKV1QiLCJraWQiORUsyYnN0RWc9IiwiYWxnIjoiUlMyNTYif
   ```
