feat: add terraform export support for auth0_token_exchange_profile - #1627
Open
katlimruiz-olh wants to merge 1 commit into
Open
feat: add terraform export support for auth0_token_exchange_profile#1627katlimruiz-olh wants to merge 1 commit into
katlimruiz-olh wants to merge 1 commit into
Conversation
Adds a resourceDataFetcher for auth0_token_exchange_profile, following the same checkpoint-pagination pattern used by auth0_user_attribute_profile, and registers it in the default resource list and parseResourceFetchers switch. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 task
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 Terraform export (
auth0 tf generate) support for theauth0_token_exchange_profileresource, following the same pattern used for other resources (e.g.auth0_client,auth0_user_attribute_profile):tokenExchangeProfileResourceFetcherininternal/cli/terraform_fetcher.go, which paginates via the checkpoint-basedListAPI (same pattern asauth0_user_attribute_profile) and emits oneauth0_token_exchange_profile.<sanitized_name>import entry per profile.auth0_token_exchange_profileindefaultResourcesand in theparseResourceFetchersswitch ininternal/cli/terraform.go.docs/auth0_terraform_generate.mdviamake docsto reflect the new resource in the--resourcesflag's default value list.No new dependencies, no changes to command behavior for existing resources.
🔬 Testing
TestTokenExchangeProfileResourceFetcherininternal/cli/terraform_fetcher_test.go, mirroring the existingTestUserAttributeProfileResourceFetchertest, verifying the fetcher maps a mockedTokenExchangeProfileto the expectedimportDataItem.TestTerraformInputs_ParseResourceFetchersininternal/cli/terraform_test.goverifying-r auth0_token_exchange_profileresolves to the new fetcher.go build ./...andgo test ./...pass.📝 Checklist