feat: Add My Org client references and expand organization connection sync#1367
Merged
kushalshit27 merged 15 commits intomasterfrom Apr 22, 2026
Merged
feat: Add My Org client references and expand organization connection sync#1367kushalshit27 merged 15 commits intomasterfrom
My Org client references and expand organization connection sync#1367kushalshit27 merged 15 commits intomasterfrom
Conversation
…Details and Identity Provider Management
…8.58.1 src/tools/auth0/handlers/organizations.ts: refactor connection handling to use client pool for task management src/tools/auth0/handlers/userAttributeProfiles.ts: remove default value for scim_mapping in schema
…o schema and update comparison logic - src/tools/auth0/handlers/organizations.ts: add organization_connection_name and organization_access_level properties - src/tools/auth0/handlers/organizations.ts: update comparison logic to include new properties
…nnection_deletion_behavior
fix(src/tools/auth0/handlers/clients.ts): replace enum values with Management.ClientMyOrganizationConfigurationAllowedStrategiesEnum fix(src/tools/auth0/handlers/clients.ts): replace enum values with Management.ClientMyOrganizationDeletionBehaviorEnum
…abledConnections to connections refactor(test/tools/auth0/handlers/organizations.tests.js): update add method to create refactor(test/tools/auth0/handlers/organizations.tests.js): update list method for connections
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1367 +/- ##
==========================================
- Coverage 80.07% 80.05% -0.02%
==========================================
Files 152 152
Lines 6213 6257 +44
Branches 1291 1307 +16
==========================================
+ Hits 4975 5009 +34
- Misses 703 704 +1
- Partials 535 544 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ankita10119
requested changes
Apr 20, 2026
…handling - src/tools/auth0/handlers/organizations.ts: replace pool.addEachTask with Promise.all for creating connections - src/tools/auth0/handlers/organizations.ts: replace pool.addEachTask with Promise.all for updating connections - src/tools/auth0/handlers/organizations.ts: replace pool.addEachTask with Promise.all for adding connections - src/tools/auth0/handlers/organizations.ts: replace pool.addEachTask with Promise.all for removing connections
…h0/auth0-deploy-cli into DXCDT-1341-my-org-ea-support
…for created organization ID - src/tools/auth0/handlers/organizations.ts: replace 'created.id' with 'createdId' in connection creation - src/tools/auth0/handlers/organizations.ts: replace 'created.id' with 'createdId' in client grants creation
ankita10119
previously approved these changes
Apr 20, 2026
As the PR is moved out for review and converted to draft, will review it again once it is out for review
ankita10119
requested changes
Apr 22, 2026
ankita10119
approved these changes
Apr 22, 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.
🔧 Changes
clients[].my_organization_configurationin the client handler schema and import/export flows so tenant configs can reference connection profiles and user attribute profiles by name instead of hard-coded Auth0 IDs.organization_connection_name,organization_access_level, andis_enabled.Examples
YAML format
Client with My Organization configuration:
Organization connection with expanded fields:
JSON format
Client with My Organization configuration:
{ "name": "My Organization App", "app_type": "regular_web", "my_organization_configuration": { "user_attribute_profile_id": "My User Attribute Profile", "connection_profile_id": "My Connection Profile", "allowed_strategies": ["okta", "samlp"], "connection_deletion_behavior": "allow_if_empty" } }Organization connection with expanded fields:
{ "name": "My Organization", "connections": [ { "connection_id": "con_123456", "organization_connection_name": "Workforce SSO", "assign_membership_on_login": true, "show_as_button": true, "is_signup_enabled": false, "is_enabled": true, "organization_access_level": "admin" } ] }🔬 Testing
npm test -- test/context/directory/clients.test.jsnpm test -- test/context/yaml/clients.test.jsnpm test -- test/tools/auth0/handlers/clients.tests.js📝 Checklist