---
title: Step 3. Test the app
description: Prepare
component: sdks
version: latest
page_id: sdks:oidc:tutorials/ios/pingam/03_test-the-app
canonical_url: https://docs.pingidentity.com/sdks/latest/oidc/tutorials/ios/pingam/03_test-the-app.html
revdate: Mon, 3 Jul 2023 18:00:37 +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-samples-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 PingAM server.

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

   Xcode launches the sample app in the iPhone simulator.

   ![ios oidc login sample menu](../../../../_images/ios-oidc-login-sample-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 login sample am config](../../../../_images/ios-oidc-login-sample-am-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 PingAM login UI:

   ![ios oidc login sample am ui](../../../../_images/ios-oidc-login-sample-am-ui.png)Figure 3. Browser launched and redirected to PingAM

4. Sign on as a demo user:

   * Name: `demo`

   * Password: `Ch4ng3it!`

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

   ![ios oidc login sample access token](../../../../_images/ios-oidc-login-sample-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 information relating to the access token:

   ![ios oidc login sample am userinfo](../../../../_images/ios-oidc-login-sample-am-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 and prints a message to the Xcode console:

   ```text
   [FRCore][4.9.1] [🌐 - Network] Response | [✅ 204] :
     https://openam.example.com:443/am/oauth2/connect/endSession?id_token_hint=eyJ0...sbrA&client_id=sdkPublicClient in 34 ms
   [FRAuth][4.9.1] [FRUser.swift:211 : logout()] [Verbose]
     Invalidating OIDC Session successful
   ```
