feat: tfp xaa support added#1648
Open
KartikJha wants to merge 4 commits into
Open
Conversation
KartikJha
force-pushed
the
DXCDT-1661-auth0-as-authorization-server
branch
from
July 21, 2026 14:43
abcf5e7 to
fc95dc7
Compare
KartikJha
force-pushed
the
DXCDT-1661-auth0-as-authorization-server
branch
from
July 23, 2026 14:15
fc95dc7 to
cec0d11
Compare
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.
Add Cross-App Access (XAA) requesting-app support to auth0_connection
🔧 Changes
Adds support for configuring an
auth0_connectionas a requesting application authorization server for Cross-App Access (XAA). This is an Early Access feature that requires thetoken_vault_xaaflag to be enabled on the tenant, and is only supported onoidcandoktastrategy connections.cross_app_access_requesting_appblock (schema.go): aMax: 1block with a single requiredactive(Boolean) attribute. It isOptional+Computedso the last-known value sticks in state. Also surfaced on theauth0_connectiondata source (inherited from the resource schema).expand.go): newexpandConnectionCrossAppAccessRequestingAppreads the raw config and only sends the block when it has changed (data.HasChange), avoiding no-op writes. As part of this change,expandConnectionAuthenticationandexpandConnectionConnectedAccountswere hardened to guard against null / non-list / empty raw config before iterating.flatten.go): newflattenConnectionCrossAppAccessRequestingAppmaps the API response back into state.active = falseexplicitly to deactivate. Documented in the schema description, docs, and example.go.mod):github.com/auth0/go-auth0bumped tov1.44.1-0.20260714184021-5a0a56dc31cato pick up theCrossAppAccessRequestingAppmodel.docs/resources/connection.mdanddocs/data-sources/connection.md; addedexamples/resources/auth0_connection/resource_with_oidc_xaa.tf.📚 References
🔬 Testing
Covered by new acceptance tests (with recorded HTTP fixtures) in
internal/auth0/connection/resource_test.go:TestAccConnectionCrossAppAccessRequestingApp— exercises the full lifecycle: create withactive = true, update toactive = false, an unrelated update (display_name) that preserves the sticky value, block removal confirming the last-known value stays in state, and confirming the data source inherits the field.TestAccConnectionCrossAppAccessRequestingAppNegative— asserts the API'soperation_not_supportederror passes through cleanly for unsupported (non-oidc/okta) strategies, rather than being masked or pre-validated client-side.Recorded cassettes added:
TestAccConnectionCrossAppAccessRequestingApp.yaml,TestAccConnectionCrossAppAccessRequestingAppNegative.yaml, andTestAccConnectionConnectedAccounts.yaml.📝 Checklist