Orchestration SDKs

Step 3. Test the app

PingFederate iOS


In this step, run the sample app that you configured in the previous step. The app performs OIDC login to your PingFederate 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 briefly opens a browser to sign the user out of PingFederate, and revoke the tokens.