Hi Auth0 Community,
We’re building a custom consent flow using Auth0 Universal Login (ACUL) and have run into a few questions we’d love some guidance on.
Our setup:
-
We’re using
auth0_prompt_screen_rendererwithhead_tagsto inject a custom JS bundle for prompts likeloginandsignup -
For our custom consent screen, we were using our own
xxx-consentas the prompt/screen type, but this is not a valid Auth0 prompt type -
We’ve been advised to use the Auth0 Forms approach with the
custom-formprompt instead -
The Auth0 dashboard does not expose
custom-formas an option, so this would need to be configured entirely via Terraform/API
Questions:
-
What is the correct way to inject a custom JS bundle inside an Auth0 Form for a
custom-formprompt? -
Since Auth0 Forms have no context, what is the recommended way to export variables like
user.email,client.name,client.logo_uri, andtenant.friendly_namethrough the page template so they’re accessible to the custom script? -
How do you distinguish between multiple
custom-formflows — is passing a param via the authorization URL the recommended approach? -
What is the recommended approach for handling translations inside Auth0 Forms given that
screen.textscontext is not available? -
Is
custom-formthe intended prompt type for custom consent , or iscustomized-consentmore appropriate for this use case?
Any guidance or examples would be greatly appreciated. Thanks!