Orchestration SDKs

Step 3. Test the app

PingOne Android

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 'oidc'.

    The Android emulator launches the default browser and opens the sign-on page:

    Starting the default authentication journey in the 'kotlin-oidc' sample app
    Figure 1. Signing on in the 'kotlin-oidc' sample app
  2. Sign on as a demo user:

    • Name: demo

    • Password: Ch4ng3it!

    If authentication is successful the app displays user info:

    Showing user info in the 'kotlin-oidc' sample app
    Figure 2. Showing user info in the 'kotlin-oidc' sample app
  3. Tap the menu icon (), and then tap generating_tokens Show Token.

    The app displays the user’s access and refresh tokens, if issued:

    Showing user info in the 'kotlin-oidc' sample app
    Figure 3. Showing access tokens in the 'kotlin-oidc' sample app
  4. Tap the menu icon (), and then tap logout Logout.

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

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