feat: add directory provisioning support for connections#1246
Merged
kushalshit27 merged 9 commits intomasterfrom Dec 22, 2025
Merged
feat: add directory provisioning support for connections#1246kushalshit27 merged 9 commits intomasterfrom
connections#1246kushalshit27 merged 9 commits intomasterfrom
Conversation
- src/tools/auth0/handlers/connections.ts: add directory_provisioning_configuration to schema - src/tools/auth0/handlers/connections.ts: implement methods for retrieving, creating, updating, and deleting directory provisioning configurations - src/tools/auth0/handlers/connections.ts: process directory provisioning in connection changes
- src/tools/auth0/handlers/connections.ts: throw ManagementError instead of generic Error for better error classification - src/tools/auth0/handlers/connections.ts: improve logging for directory provisioning fetch errors
…visioning - src/tools/auth0/handlers/connections.ts: change error messages to use connection ID instead of name - src/tools/auth0/handlers/scimHandler.ts: remove directory_provisioning_configuration from bodyParams
- docs/resource-specific-documentation.md: document directory provisioning for Google Workspace connections - examples/directory/connections/google-apps.json: add example configuration for Google Workspace directory provisioning - examples/yaml/tenant.yaml: include Google Workspace connection in tenant YAML configuration - src/tools/auth0/handlers/connections.ts: implement directory provisioning create, update, and delete operations - test/tools/auth0/handlers/connections.tests.js: add tests for directory provisioning configuration handling - test/tools/auth0/handlers/scimHandler.tests.js: ensure directory provisioning configuration is removed before updating connection
- src/tools/auth0/handlers/connections.ts: improve error handling for directory provisioning and add debug logs for create, update, and delete operations - test/tools/auth0/handlers/connections.tests.js: update test to use sinon.match for more flexible assertions
connections
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1246 +/- ##
==========================================
- Coverage 80.74% 80.42% -0.33%
==========================================
Files 146 146
Lines 5693 5772 +79
Branches 1153 1174 +21
==========================================
+ Hits 4597 4642 +45
- Misses 625 645 +20
- Partials 471 485 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
palashgdev
previously approved these changes
Dec 19, 2025
- src/tools/auth0/handlers/scimHandler.ts: delete from bodyParams
- docs/resource-specific-documentation.md: set synchronize_automatically to false - examples/directory/connections/google-apps.json: set synchronize_automatically to false - examples/yaml/tenant.yaml: set synchronize_automatically to false - examples/yaml/tenant.yaml: add api_enable_users field - examples/directory/connections/google-apps.json: add api_enable_users field - docs/resource-specific-documentation.md: add api_enable_users field
duedares-rvj
approved these changes
Dec 22, 2025
Merged
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
Add directory provisioning support for Google Workspace (
google-apps) connections: schema coverage support (create/update/delete/get) for connections.Examples
YAML format
JSON format
{ "name": "google-apps-directory-provisioning", "strategy": "google-apps", "enabled_clients": ["My SPA"], "options": { "domain": "example.com", "tenant_domain": "example.com", "client_id": "some_client_id", "client_secret": "some_client_secret", "api_enable_users": true }, "directory_provisioning_configuration": { "mapping": [ { "auth0": "email", "idp": "mail" }, { "auth0": "name", "idp": "displayName" } ], "synchronize_automatically": false } }📚 References:
🔬 Testing
📝 Checklist