Orchestration SDKs

Step 3. Test the app

PingOne Advanced Identity Cloud iOS


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

    Xcode launches the sample app in the iPhone simulator:

    Starting the 'swiftui-oidc-module' sample app on iOS
    Figure 1. Starting the 'swiftui-oidc-module' sample app on iOS
  2. In the sample app on the iPhone simulator, tap 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
    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
    Figure 3. Access token in the 'swiftui-oidc-module' sample app
  5. Tap Back to return to the previous screen, tap Back again to go to the main menu, and then tap User Info.

    The app displays the user information relating to the access token:

    User info in the 'swiftui-oidc-module' sample app
    Figure 4. User info in the 'swiftui-oidc-module' sample app
  6. Tap Back to go back to the main menu, tap 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:

    [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