Skip to content

Support cimd clients in terrafrom generate#1501

Merged
bkiran6398 merged 2 commits intomainfrom
DXCDT-1514/cimd_auth_mcp
Apr 27, 2026
Merged

Support cimd clients in terrafrom generate#1501
bkiran6398 merged 2 commits intomainfrom
DXCDT-1514/cimd_auth_mcp

Conversation

@bkiran6398
Copy link
Copy Markdown
Contributor

@bkiran6398 bkiran6398 commented Apr 27, 2026

🔧 Changes

Adds CIMD (Customer Identity Management for Developers) client support to the Terraform resource fetcher.

  • Updates clientResourceFetcher.FetchData to distinguish CIMD clients from regular clients based on ExternalMetadataType
  • CIMD clients are now exported as auth0_client_cimd. resources instead of auth0_client.
  • Includes external_metadata_type in the API field list to support the branching logic
  • Regular clients and auth0_client_credentials resources remain unchanged
  • When using --resources auth0_client, both auth0_client and auth0_client_cimd resources are generated. CIMD clients are automatically detected and mapped to the auth0_client_cimd Terraform resource type.

📚 References

DXCDT-1604

🔬 Testing

  • Added unit tests for CIMD-only client fetching and mixed (regular + CIMD) client fetching
  • All 4 subtests in TestClientResourceFetcher_FetchData pass
  • Manually tested the terraform generate import functionality with mixed client types
go test -run TestClientResourceFetcher_FetchData ./internal/cli/...

📝 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)

- Updated the FetchData method in terraform_fetcher.go to handle clients with ExternalMetadataType "cimd".
- Introduced conditional logic to append clients with a new resource name format "auth0_client_cimd" for cimd clients.
- Added new test cases in terraform_fetcher_test.go to verify the retrieval of cimd client data and mixed client types.
- Ensured that both regular and cimd clients are processed correctly, enhancing the functionality of the client resource fetching.
@bkiran6398 bkiran6398 requested a review from a team as a code owner April 27, 2026 09:49
…lint suggestion

- Removed a blank line in the FetchData method of the clientResourceFetcher.
- This change improves code readability and maintains consistent formatting.
@bkiran6398 bkiran6398 changed the title Support cimd clients in terrafrom import Support cimd clients in terrafrom generate Apr 27, 2026
@bkiran6398 bkiran6398 merged commit d0de72b into main Apr 27, 2026
6 checks passed
@bkiran6398 bkiran6398 deleted the DXCDT-1514/cimd_auth_mcp branch April 27, 2026 12:36
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