feat: add Cross App Access (XAA) resource app support for connections and clients#1431
Draft
harshithRai wants to merge 1 commit into
Draft
feat: add Cross App Access (XAA) resource app support for connections and clients#1431harshithRai wants to merge 1 commit into
harshithRai wants to merge 1 commit into
Conversation
… and clients (EA)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1431 +/- ##
=========================================
Coverage ? 80.23%
=========================================
Files ? 163
Lines ? 7533
Branches ? 1663
=========================================
Hits ? 6044
Misses ? 800
Partials ? 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 Deploy CLI support for the XAA (Cross App Access) - "Auth0 as Resource Application Authorization Server" EA feature, covering the new Management API properties on connections and clients:
cross_app_access_resource_appobject (src/tools/auth0/handlers/connections.ts):cross_app_access_resource_app.status:"enabled"|"disabled"- enables the connection as a Cross App Access Resource Application.identity_assertion_authorization_grantobject (src/tools/auth0/handlers/clients.ts):identity_assertion_authorization_grant.active:boolean- enables ID-JAG token exchange for the client.options.discovery_url(string) andoptions.oidc_metadata(object), previously only meaningful for OIDC, are now accepted forstrategy: samlpconnections. No schema change was required:connectionOptionsSchemaalready allows additional properties and these fields are not strategy-restricted; a test was added to lock in the behavior.Both new properties are additive and pass through to the Management API on create/update and round-trip back on export.
Shape
New optional fields; both YAML and directory (JSON) formats supported.
Connection: cross_app_access_resource_app (optional)
YAML (
connectionsintenant.yaml):JSON (
connections/enterprise-saml.json):{ "name": "enterprise-saml", "strategy": "samlp", "cross_app_access_resource_app": { "status": "enabled" } }Client:
identity_assertion_authorization_grant(optional)YAML (clients in tenant.yaml):
JSON (
clients/My XAA Client.json):{ "name": "My XAA Client", "identity_assertion_authorization_grant": { "active": true } }SAML connection options:
strategy: samlpnow also accepts (previously OIDC-only)YAML:
JSON:
🔬 Testing
Unit tests
test/tools/auth0/handlers/connections.tests.js: added tests forcross_app_access_resource_app(accept valid status, reject invalid status, pass-through on update); updated existing options test to cover SAML discovery_url/oidc_metadata.test/tools/auth0/handlers/clients.tests.js: added test foridentity_assertion_authorization_grant(accepted + passed through on create).Manual end-to-end (verified against a real EA tenant):
exporta tenant, addidentity_assertion_authorization_grant: { active: true }to a client,import, then re-export→ field persisted.importasamlpconnection withcross_app_access_resource_app: { status: enabled }(plus a valid issuer/cert, required by the API), then re-export→cross_app_access_resource_app,discovery_url, andoidc_metadataall round-tripped from the tenant.📝 Checklist