fix: re-apply prompt settings after branding update to prevent Authentication Profile reset#1404
Merged
Conversation
…tication Profile reset
…tication Profile reset
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1404 +/- ##
=======================================
Coverage 80.18% 80.19%
=======================================
Files 153 153
Lines 7116 7119 +3
Branches 1572 1573 +1
=======================================
+ Hits 5706 5709 +3
Misses 760 760
Partials 650 650 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
kushalshit27
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
PATCH /api/v2/brandingis called without acolorsfield, the Auth0 Management API silently resets the tenant's Authentication Profile (identifier_first) from "Identifier First" to "Identifier + Password". This affects any user importing a branding config that doesn't include colors.A partial fix was shipped in
v8.29.3that reapplied prompt settings after branding, but only when prompts was present in the user's config. This fix closes the gap for the case where prompts is not managed in the config at all.🔧 Changes
In the branding handler, prompt settings are now snapshotted before the branding
PATCHand immediately re-applied after, undoing the API side-effect regardless of whether the tenant has colors configured or whether prompts is in the user's config.No changes to the
YAMLorJSONconfig shape, this is purely an internal fix with no impact on existing configurations.📚 References
brandingwithoutcolorsresets Authentication Profile to "Identifier + Password" #1402auth0_brandingwith onlylogo_urlsilently resets authentication profile settings terraform-provider-auth0#1510🔬 Testing
test/tools/auth0/handlers/branding.tests.jscovering scenarios where:a0deploy importwith a branding config containing only logo_url and no colors📝 Checklist