Support cimd clients in terrafrom generate#1501
Merged
bkiran6398 merged 2 commits intomainfrom Apr 27, 2026
Merged
Conversation
- 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.
…lint suggestion - Removed a blank line in the FetchData method of the clientResourceFetcher. - This change improves code readability and maintains consistent formatting.
ramya18101
approved these changes
Apr 27, 2026
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 CIMD (Customer Identity Management for Developers) client support to the Terraform resource fetcher.
clientResourceFetcher.FetchDatato distinguish CIMD clients from regular clients based onExternalMetadataTypeauth0_client_cimd.resources instead ofauth0_client.external_metadata_typein the API field list to support the branching logicauth0_client_credentialsresources remain unchanged--resources auth0_client, bothauth0_clientandauth0_client_cimdresources are generated. CIMD clients are automatically detected and mapped to theauth0_client_cimdTerraform resource type.📚 References
DXCDT-1604
🔬 Testing
TestClientResourceFetcher_FetchDatapassterraform generateimport functionality with mixed client typesgo test -run TestClientResourceFetcher_FetchData ./internal/cli/...📝 Checklist