auth0 / terraform-provider-auth0

The Auth0 Terraform Provider is the official plugin for managing Auth0 tenant configuration through the Terraform tool.
https://registry.terraform.io/providers/auth0/auth0/latest/docs
Mozilla Public License 2.0
164 stars 79 forks source link

Support for Universal Login Page Prompt Partials #910

Open matthew-french-shippit opened 8 months ago

matthew-french-shippit commented 8 months ago

Checklist

Describe the problem you'd like to have solved

We'd love the ability to add partials for the Universal Login Page as described here: https://auth0.com/docs/sign-up-prompt-customizations#use-the-api-to-edit-custom-prompts.

An example use case is a partial for T&Cs checkbox that sits in the signup form, and passes the checkbox value to the User Pre-Registration action.

As far as I can tell, this is a recently-added, early access feature. Example usage of the API hasn't yet been listed in the management API docs yet: https://auth0.com/docs/api/management/v2

Describe the ideal solution

An auth0_prompt_partial resource that I can use to specify HTML partials to be used in the Universal Login Page.

Alternatives and current workarounds

There are hacky ways to add custom fields to the Universal , such as described here: https://community.auth0.com/t/tos-policy-acceptance-in-new-universal-login/102042.

These also can't be used to pass data to Pre-Registration actions

Additional context

No response

radolan71 commented 5 months ago

I found this seems to be implemented in version 1.2.0 of the provider https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/prompt_partials