1. Open the source file for the resource that will launch the flow.
  2. Create a call to your PingOne application according to the PingOne documentation and add it to the launching resource.

    The general format used for this call is:

    https://auth.pingone.com/<Environment ID>/as/authorize?response_type=<response type>
         &client_id=<client ID>
         &redirect_uri=<redirect URI>
    You can reference the parameter values passed in with the invocation. The format is:
    global.skOpenId.<parameter name>
  3. If the user requires a token but the flow did not grant a token, make an API call to the PingOne token endpoint to grant the user a token. Use the PingOne token authentication code endpoint or the PingOne client credentials endpoint.