Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Validation of Universal Login Template #770

Closed
1 task done
AshleyEke opened this issue Aug 3, 2023 · 2 comments
Closed
1 task done

Better Validation of Universal Login Template #770

AshleyEke opened this issue Aug 3, 2023 · 2 comments
Labels
🌱 feature New feature or request

Comments

@AshleyEke
Copy link

Checklist

Describe the problem you'd like to have solved

I am working on bringing an existing auth0 tenant under terraform. As part of this I am setting up the universal login using the auth0_branding resource.

For the universal_login.body variable, I am reading the content from a HTML file withing my module's resources folder. The HTML file contains the existing HTML that I copied from within the universal login section of the auth0 dashboard.

When I run terraform validate it completes without issue but when I eventually go to apply it, I get the following error:

Error: 400 Bad Request: The template must contain a single auth0:head tag and at least one auth0:widget tag.

Describe the ideal solution

It would have saved me a lot of additional effort with my company's branching and merging strategy if this would have been flagged during the validate command. Theoretically, it only needs to scan the contents set against the variable to check if the auth0:head and auth0:widget tags are present.

Alternatives and current workarounds

No response

Additional context

No response

@AshleyEke AshleyEke added the 🌱 feature New feature or request label Aug 3, 2023
@sergiught
Copy link
Contributor

Hey @AshleyEke 👋🏻

Thanks for raising this with us. This is definitely a good improvement sugestion and we'll look into adding the validation at some point in time, however no ETA at the moment. I'll circle back once I have an update. Appreciate your patience meanwhile!

@sergiught
Copy link
Contributor

Hey @AshleyEke 👋🏻

We have improved the validation of the universal login template body in the latest beta release, which you can find here: registry.terraform.io/providers/auth0/auth0/1.0.0-beta.4. Please give it a try, and if you come across any issues, don't hesitate to reach out.

✌🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants