
Support
This integration is supported by Arengu. Learn more
Arengu Policy Acceptance
Require your users to accept custom privacy policies or new terms
Arengu is a low-code platform that allows you to build UI components (forms) with custom logic (flow) that can be prompted in your sign-up or authentication flows based on your Auth0's rules.
This integration will cover use cases where you require your users to accept new terms, privacy policies or data disclosure forms the next time they log in.
Support
This integration is supported by Arengu. Learn more

Drag & drop form builder
Easily create your custom form with our drag & drop builder. Add multiple steps, require payment details, add custom server-side logic... without writing a single line of code.

Visual flow editor
Easily build server-side logic that can be used in your forms or as a standalone product. Create custom validations, integrate with other APIs or automate tasks without coding.

Out of the box integrations
Send your data back and forth between Arengu and your favourite apps or custom APIs.
This integration will require all your users to agree to a new terms of service hosted in Arengu.
Prerequisites
- An active Auth0 account (you can sign up for free here)
- An active Arengu account (you can sign up for free here)
Add the Auth0 Action
- Select Add Integration (at the top of this page).
- Read the necessary access requirements and click Continue.
- Configure the integration using the following fields:
- Arengu Form URL: The URL that contains an embedded form or with a hosted form page
- Arengu Session Token: A long, random string
- Click Create to add the integration to your Library.
- Click the Add to flow link on the pop-up that appears.
- Drag the Action into the desired location in the flow.
- Click Apply Changes.
Building the user flow in Arengu
Go to the form editor and add the required fields. In this case, we will add a Legal
field with our terms:
Arengu automatically prefills hidden fields with URL params values and, as we are receiving session_token
and state
parameters via URL, we will create two hidden fields with the same keys clicking on the eye icon:
Create and link a flow to the first step (same behaviour as Auth0 Actions but in Arengu) to execute custom logic when the user clicks on continue:
Go to the flow editor and start building the flow adding a Verify JSON web token
:
Settings for this action:
- ID: change the ID to
verifyJwt
, this will simplify referencing the output information of this flow action. - Token: add
{{input.body.session_token}}
to reference thesession_token
parameter we are receiving from the form. - Secret or private key: add the Arengu Session Token used above.
- Issuer: add the host from where you will receive the requests (eg. 'https://arengu.eu.auth0.com/`).
- Add an
If/then condition
that we will use to perform conditional logic if the JWT is valid or not.
Settings for this action:
- Condition: add
{{verifyJwt.valid}}
to the first input and chooseis true
as evaluation criteria.
In case the JWT validations fails (eg. wrong settings, expired JWT, altered JWT, etc), you can add a custom error message using the Show error message
action in the False
branch
Add a Sign JSON web token
action to the True
branch to sign the provided user information.
Settings for this action:
- ID: change the ID to
signJwt
, this will simplify referencing the output information of this flow action. - Algorithm: choose
HS256
. - Secret or private key: add the Arengu Session Token used above.
- Issuer: add the host from where you will receive the requests (eg. 'https://arengu.eu.auth0.com/`).
- Subject: add
{{verifyJwt.payload.sub}}
to reference the verifiedsub
of theVerify JSON web token
output. - Expires in: add a short expiration time (eg.
15-30 seconds
) to avoid replay attacks. - Payload: we will add our custom claims inside the
other
property:
{
"other": {
"terms_accepted": true
},
"state": "{{input.body.state}}"
}
Let's finish this flow redirecting the user to the Auth0 /continue
endpoint with the state
and signed token
in the URL param adding the Submit the form
action:
Settings for this action:
- Redirect to URL: enable it and add
https://YOUR_TENANT_SUBDOMAIN.auth0.com/continue?state={{input.body.state}}&session_token={{signToken.token}}
to redirect using thestate
parameter we've received in the form, and thetoken
parameter we've generated in the previous flow action.
Support
This integration is supported by Arengu. Learn more