PingOne Platform APIs

DaVinci Sign-On Flow with PingOne Auth

This activity shows you how to create a PingOne application, find and associate a DaVinci flow policy with the application, and initiate the flow using a PingOne authorize request. The authorize request sets the response_mode property to pi.flow, which tells the authorization server to return data, instead of a redirect URL. In addition, the authorize request sets the X-Requested-With HTTP header with a value of ping-sdk to return JSON instead of HTML (and scripts).

This workflow uses the default DaVinci flow policy that is included automatically when you add the DaVinci product to your environment. DaVinci defaults include a DaVinci flow that defines sign-on, registration, and password recovery flow actions. There is also a default DaVinci application that uses this default flow to create the flow policy.

This scenario illustrates the following common operations supported by the PingOne APIs:

  • Get the DaVinci flow policy ID.

  • Assign a DaVinci flow policy to a PingOne application.

  • Create the PingOne authorize request.

  • Configure the DaVinci flow capability endpoints to complete the authentication steps.

  • Call the PingOne token request to get an access token.

Click the Run in Postman button below to fork, or download and import, the Postman collection for this workflow to your workspace.