---
title: Step 3. Test the app
description: Prepare
component: sdks
version: latest
page_id: sdks:oidc:tutorials/android/pingone/03_running-sample-pingone
canonical_url: https://docs.pingidentity.com/sdks/latest/oidc/tutorials/android/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", "Android"]
section_ids:
  log_in_as_a_demo_user: Log in as a demo user
---

# 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 the following procedure, you run the sample app that you configured in the previous step. The app performs a centralized login on your PingOne instance.

## Log in as a demo user

1. In Android Studio, select Run > Run 'ping-oidc.app'.

2. On the Environment screen, ensure the PingOne environment you added earlier is correct.

   You can edit any of the values in the app if required.

   ![android oidc pingone config](../../../_images/android_oidc_pingone_config.png)Figure 1. Confirm the PingOne connection properties

3. Tap **Launch OIDC Redirect Login**.

   The app launches a web browser and redirects to your PingOne environment:

   ![android oidc pingone login](../../../_images/android_oidc_pingone_login.png)Figure 2. Browser launched and redirected to PingOne

4. Sign on as a demo user:

   * Name: `demo`

   * Password: `Ch4ng3it!`

   If authentication is successful, the application returns to the access token screen.

5. Tap the menu icon ([icon: bars, set=fas]), and then tap [icon: account_box, set=material, size=inline] User Profile:

   ![android oidc pingone userinfo](../../../_images/android_oidc_pingone_userinfo.png)Figure 3. User info of the demo user

6. Tap the menu icon ([icon: bars, set=fas]), and then tap [icon: logout, set=material, size=inline] Logout.

   The app logs the user out of PingOne, revokes the tokens, and returns to the config page.

   |   |                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
   | - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | To verify the user is logged 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 4. 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. |
