You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing prompt custom text and implement prompt screen partial in terraform generator (#1426)
* feat(prompt): update custom text prompt types to add missing items
- Reformatted the `customTextPromptTypes` array for better readability.
- Added new prompt types: `email_identifier_challenge` and `passkeys`.
- This change enhances the prompt handling capabilities in the `terraform_fetcher.go` file.
* feat(prompt): add support for screen partial prompts
- Introduced `promptScreenPartialResourceFetcher` to handle fetching data for screen partial prompts.
- Updated `parseResourceFetchers` method in `terraform.go` to include the new fetcher for "auth0_prompt_screen_partial".
- Added a mapping for screen partial prompt types to their corresponding screens in `terraform_fetcher.go`.
- This enhancement allows for better management and retrieval of screen partial prompts in the CLI.
* feat(prompt): update custom text prompt types and clean up code
- Added missing custom text prompt types including "login-passwordless", "phone-identifier-enrollment", and others to enhance prompt coverage.
- Removed outdated TODO comments to improve code clarity.
- Updated references in comments for better documentation and accuracy.
* feat(prompt): enhance custom text prompts and add screen partial support
- Refactored the promptTypes array in TestPromptCustomTextResourceFetcher to improve readability and added new prompt types.
- Introduced Test_promptScreenPartialResourceFetcher to validate the retrieval of screen partial prompts data.
- Ensured that the new tests cover various scenarios for screen partial prompts, enhancing overall test coverage.
* feat(prompt): add support for screen partial prompts in Terraform config
- Updated the default resources list to include `auth0_prompt_screen_partial`.
- This change allows users to generate Terraform configurations for screen partial prompts, enhancing the flexibility of the `auth0 terraform generate` command.
* feat(prompt): remove unused custom text prompt types
- Eliminated "async-approval-flow" from the customTextPromptTypes slice in terraform_fetcher.go.
- This prompt type is not supported in go-auth0 and terraform provider.
* feat(prompt): streamline custom text prompt types in code
- Consolidated the definition of `customTextPromptTypes` in `terraform_fetcher.go` and `terraform_fetcher_test.go` to a single line for improved readability.
- This change reduces visual clutter and maintains consistency across the codebase.
- No functional changes were made; the prompt types remain the same.
* fix(prompt): update assertion in Test_promptScreenPartialResourceFetcher_FetchData
- Changed assertion from assert.Equal to assert.ElementsMatch to ensure
that the order of elements in the fetched data does not affect the test
outcome.
* feat(auth): add new required scopes for organization and user profiles
- Added "read:organization_discovery_domains", "read:self_service_profiles", and "read:user_attribute_profiles" to the RequiredScopes variable.
- This change enhances the authentication flow by allowing access to additional user and organization-related resources.
* fix(tests): uncomment and restore Terraform test cases
- Restored the previously commented-out test cases for Terraform integration.
- Comment out failing quickstart integration test
* fix(tests): rename quickstart test cases to disabled file
- Renamed quickstart test cases from `quickstarts-test-cases.yaml` to `quickstarts-test-cases.yaml.disabled`.
- This change skips running quickstarts-test-cases.
- Commenting out tests led to `could not find test with pattern: ` error, hence renamed the file.
* fix(tests): add dummy test case to quickstarts
* fix(terraform): improve error message for terraform plan failure
- Enhanced the warning message in the generateTerraformCmdRun function to include the error details when terraform plan fails.
- This change provides clearer feedback to users, aiding in troubleshooting by specifying the nature of the error encountered.
* fix(tests): Skip only download quickstart test
* chore(terraform): address review comments
- Renamed `customTextPromptTypes` to `customTextPrompts` for clarity.
- Updated `customTextPromptOptions` to use the new prompt variable.
- Enhanced error message in `generateTerraformCmdRun`.
- Adjusted test cases in `terraform_fetcher_test.go` to reflect prompt name changes.
* fix(tests): re-enable download quickstart test case
- Restored the previously commented-out download quickstart test case.
* fix(cli): add pre-login organization picker to prompt screen map
- Updated the PromptScreenMap in universal_login_customize.go to include
"pre-login-organization-picker" under the "organizations" key.
* fix(go.mod): update go-auth0 dependency to v1.33.0
- Updated the version of the `github.com/auth0/go-auth0` dependency from v1.32.1 to v1.33.0 in `go.mod`.
- The corresponding entries in `go.sum` have been added to reflect the updated version.
-o, --output-dir string Output directory for the generated Terraform config files. If not provided, the files will be saved in the current working directory. (default "./")
36
-
-r, --resources strings Resource types to generate Terraform config for. If not provided, config files for all available resources will be generated. (default [auth0_action,auth0_attack_protection,auth0_branding,auth0_branding_theme,auth0_phone_provider,auth0_client,auth0_client_grant,auth0_connection,auth0_custom_domain,auth0_flow,auth0_flow_vault_connection,auth0_form,auth0_email_provider,auth0_email_template,auth0_guardian,auth0_log_stream,auth0_network_acl,auth0_organization,auth0_pages,auth0_prompt,auth0_prompt_custom_text,auth0_prompt_screen_renderer,auth0_resource_server,auth0_role,auth0_self_service_profile,auth0_tenant,auth0_trigger_actions,auth0_user_attribute_profile])
36
+
-r, --resources strings Resource types to generate Terraform config for. If not provided, config files for all available resources will be generated. (default [auth0_action,auth0_attack_protection,auth0_branding,auth0_branding_theme,auth0_phone_provider,auth0_client,auth0_client_grant,auth0_connection,auth0_custom_domain,auth0_flow,auth0_flow_vault_connection,auth0_form,auth0_email_provider,auth0_email_template,auth0_guardian,auth0_log_stream,auth0_network_acl,auth0_organization,auth0_pages,auth0_prompt,auth0_prompt_custom_text,auth0_prompt_screen_renderer,auth0_resource_server,auth0_role,auth0_self_service_profile,auth0_tenant,auth0_trigger_actions,auth0_user_attribute_profile,auth0_prompt_screen_partial])
37
37
-v, --tf-version string Terraform version that ought to be used while generating the terraform files for resources. If not provided, 1.5.0 is used by default (default "1.5.0")
0 commit comments