Skip to content

feat: add terraform export support for auth0_token_exchange_profile - #1627

Merged
ramya18101 merged 3 commits into
auth0:mainfrom
katlimruiz-olh:feat/terraform-export-token-exchange-profile
Sep 2, 2026
Merged

feat: add terraform export support for auth0_token_exchange_profile#1627
ramya18101 merged 3 commits into
auth0:mainfrom
katlimruiz-olh:feat/terraform-export-token-exchange-profile

Conversation

@katlimruiz-olh

Copy link
Copy Markdown

🔧 Changes

Adds Terraform export (auth0 tf generate) support for the auth0_token_exchange_profile resource, following the same pattern used for other resources (e.g. auth0_client, auth0_user_attribute_profile):

  • Added tokenExchangeProfileResourceFetcher in internal/cli/terraform_fetcher.go, which paginates via the checkpoint-based List API (same pattern as auth0_user_attribute_profile) and emits one auth0_token_exchange_profile.<sanitized_name> import entry per profile.
  • Registered auth0_token_exchange_profile in defaultResources and in the parseResourceFetchers switch in internal/cli/terraform.go.
  • Regenerated docs/auth0_terraform_generate.md via make docs to reflect the new resource in the --resources flag's default value list.

No new dependencies, no changes to command behavior for existing resources.

🔬 Testing

  • Added TestTokenExchangeProfileResourceFetcher in internal/cli/terraform_fetcher_test.go, mirroring the existing TestUserAttributeProfileResourceFetcher test, verifying the fetcher maps a mocked TokenExchangeProfile to the expected importDataItem.
  • Added a case to TestTerraformInputs_ParseResourceFetchers in internal/cli/terraform_test.go verifying -r auth0_token_exchange_profile resolves to the new fetcher.
  • go build ./... and go test ./... pass.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ramya18101

Copy link
Copy Markdown
Contributor

Hello @katlimruiz-olh ,

Can you please sign the 1st commit, Changes seems perfect!

katlimruiz-olh and others added 3 commits August 31, 2026 17:29
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>
@katlimruiz-olh
katlimruiz-olh force-pushed the feat/terraform-export-token-exchange-profile branch from 5f49d21 to b9cf629 Compare August 31, 2026 22:37
@katlimruiz-olh

katlimruiz-olh commented Aug 31, 2026

Copy link
Copy Markdown
Author

Hello @katlimruiz-olh ,

Can you please sign the 1st commit, Changes seems perfect!

Done

@katlimruiz-olh

Copy link
Copy Markdown
Author

Will this be merged eventually autoamtically?

@ramya18101
ramya18101 merged commit aab6366 into auth0:main Sep 2, 2026
6 checks passed
@ramya18101 ramya18101 mentioned this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants