fix: add use_scope_descriptions_for_consent to allowedTenantFlags#1428
Open
harshithRai wants to merge 3 commits into
Open
fix: add use_scope_descriptions_for_consent to allowedTenantFlags#1428harshithRai wants to merge 3 commits into
harshithRai wants to merge 3 commits into
Conversation
harshithRai
marked this pull request as ready for review
July 17, 2026 06:26
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1428 +/- ##
=======================================
Coverage 80.23% 80.23%
=======================================
Files 163 163
Lines 7533 7533
Branches 1663 1663
=======================================
Hits 6044 6044
Misses 800 800
Partials 689 689 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
🔧 Changes
Adds
use_scope_descriptions_for_consenttoallowedTenantFlagsin the tenant handler. This flag was being silently stripped from the import payload despite being publicly documented in the Auth0 API and returned byGET /api/v2/tenants/settingson export — causing a broken export→import roundtrip.📚 References
use_scope_descriptions_for_consenttenant flag is silently stripped on import — missing fromallowedTenantFlagsdespite being publicly documented #1426🔬 Testing
Unit tests
Existing unit tests cover this.
mockAllowedFlagsis built dynamically fromallowedTenantFlags, so the new flag is automatically exercised by the#removeUnallowedTenantFlagstest suite.Manual testing
Tested against a real tenant:
use_scope_descriptions_for_consent: truetotenant.yamla0deploy import- flag is now included in thePATCH /api/v2/tenants/settingspayload with no "deemed incompatible" warninga0deploy export- exportedtenant.yamlconfirmsuse_scope_descriptions_for_consent: trueis set on the tenantE2E Tests
E2E tests rerun and recordings updated.
📝 Checklist