Orchestration SDKs

Step 3. Test the app

PingOne Advanced Identity Cloud PingAM Android


In this step, you run and test the sample app.

You run it in the emulator or on your Android device and perform authentication with a demo user.

  1. If not already open, in Android Studio, open the sdk-sample-apps/android/kotlin-journey folder you cloned in a previous step.

  2. Select Run > Run 'journey'.

    Android Studio launches the sample app on the connected device or simulator.

  3. Tap the menu icon (), tap boltLaunch Journey.

  4. Enter the name of the journey to launch, for example Login or sdkUsernamePasswordJourney and then tap Submit.

  5. Sign on as a demo user:

    • Name: demo

    • Password: Ch4ng3it!

    After successful authentication the app displays user info:

    kotlin journey user info
    Figure 1. Viewing userinfo for an account in the Android sample app.
  6. Tap the menu icon (), and then tap generating_tokens Show Token.

    The app displays the access, refresh, and ID tokens for the account. You can also view the scopes granted to the user.

    kotlin journey access token
    Figure 2. Viewing OAuth 2.0 tokens for an account in the Android sample app.
  7. Tap the menu icon (), and then tap logout Logout.

    The app terminates the user session and returns to the Launch Journey page.