This activity shows you how to use the login and agreement consent steps in a flow definition with an EXPERIENCE trigger type. This flow does not require a PingOne sign-on policy. It can be initiated from a browser link in a web application, and after the user logs in and accepts the consent agreement, the flow redirects back to the web application.

The following operations are supported by the PingOne APIs:

Workflow order of operations

To authenticate a user and prompt for consent, 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 GET request to /environments/{environmentId}/languages to find the environment’s default language.

  3. Make a POST request to /environments/{environmentId}/agreements to create a new agreement.

  4. Make a POST request to /environments/{environmentId}/agreements/{agreementID}/languages to create the language for the agreement.

  5. Make a POST request to /environments/{environmentId}/agreements/{agreementID}/languages/{agreementLanguageID}/revisions to create the revision for the agreement in the specified language.

  6. Make a PUT request to /environments/{environmentId}/agreements/{agreementID}/languages/{agreementLanguageID} to enable the agreement language.

  7. Make a PUT request to /environments/{environmentId}/agreements/{agreementID} to enable the agreement.

  8. Make a POST request to /environments/{environmentId}/forms to create the login form.

  9. Make a POST request to /environments/{environmentId}/flowDefinitions to create the flow definition.

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

  11. Make a POST request to /{environmentId}/flowExecutions/{flowExecutionID} to submit the login form with the user’s credentials.

  12. Make a POST request to /{environmentId}/flowExecutions/{flowExecutionID} to accept the agreement.

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