This activity shows you how to use the flow manager APIs to create a registration form, a flow definition, and a sign-on policy that references the flow definition to create and verify a new user account.

The following operations are supported by the PingOne APIs:

Workflow order of operations

To create a new user through a registration flow definition, the following tasks must be completed successfully:

  1. Make a POST request to /environments/{environmentId}/applications to add a new application to the specified environment.

  2. Make a POST request to /environments/{environmentId}/populations to create a new population for the reistered user.

  3. Make a POST request to /environments/{environmentId}/forms to create the registration form.

  4. Make a POST request to /environments/{environmentId}/flowDefinitions to create the flow definitions and flow steps.

  5. Make a POST request to /environments/{environmentId}/signOnPolicies to create a new sign-on policy that references the flow definition resource.

  6. Make a POST request to /environments/{environmentId}/signOnPolicies/{signOnPolicyId}/actions to define the registration form action associated with this sign-on policy.

  7. Make a POST request to /environments/{environmentId}/applications/{applicationId}/signOnPolicyAssignments to associate the registration form sign-on policy with the application.

  8. Make a GET request to /{environmentId}/as/authorize to obtain an authorization grant. This request starts the authorization flow.

  9. Make a GET request to /{environmentId}/flows/{flowId} to get the flow.

  10. Make a POST request to /{environmentId}/experiences/{flowDefinitionID} to trigger flow execution.

  11. Make a POST request to /{environmentId}/flowExecutions/{flowExecutionID} to submit the form.

  12. Make a POST request to /{environmentId}/flowExecutions/{flowExId} to verify the new user account.

  13. Make a GET request to /{environmentId}/flows/{flowId}/flowExecutionCallback?flowExecutionId={flowExID} to return to the flow.

  14. Make a GET request to /{environmentId}/as/resume?flowId={flowID} to call the resume endpoint and return the auth code.

  15. Make a GET request to /environments/{environmentId}/applications/{appplicationId}/secret to get the application secret.

  16. Make a POST request to /{environmentId}/as/token to exchange the auth token for an access token.

Click the Run in Postman button below to download the Postman collection for this use case.

Run in Postman