Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for "custom-phone-provider" trigger #1100

Open
6 tasks done
gamesagent opened this issue Dec 11, 2024 · 1 comment
Open
6 tasks done

Support for "custom-phone-provider" trigger #1100

gamesagent opened this issue Dec 11, 2024 · 1 comment
Assignees
Labels
🪲 bug Something isn't working

Comments

@gamesagent
Copy link

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this provider and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

I am attempting to use the custom-phone-provider trigger available through the /api/v2/actions/triggers endpoint in my Terraform configuration. The trigger is correctly listed as available with the following details from the API response:

{
  "id": "custom-phone-provider",
  "version": "v1",
  "status": "CURRENT",
  "runtimes": [
    "node18-actions"
  ],
  "default_runtime": "node18",
  "binding_policy": "trigger-bound",
  "compatible_triggers": []
}

However, when I attempt to use this trigger in my Terraform configuration, I receive the following error:
Error: expected trigger to be one of ["post-login" "credentials-exchange" "pre-user-registration" "post-user-registration" "post-change-password" "send-phone-message" "password-reset-post-challenge"], got custom-phone-provider

It seems that the custom-phone-provider trigger is not recognized by the Auth0 Terraform Provider, even though it is listed as available through the Auth0 API.

Expectation

The custom-phone-provider trigger should be supported in the Auth0 Terraform Provider, allowing its configuration without resulting in an error.

Reproduction

  1. Given the following Terraform configuration:
resource "auth0_action" "custom_phone_provider_action" {
  name       = "Custom Phone Provider Action"
  runtime    = "node18"
  code_path = file("${path.module}/../actions/CustomPhoneProvider.js")
  trigger = "custom-phone-provider"
  ...
}
  1. When I apply the Terraform configuration with terraform apply

  2. Then I receive the error:
    Error: expected trigger to be one of ["post-login" "credentials-exchange" "pre-user-registration" "post-user-registration" "post-change-password" "send-phone-message" "password-reset-post-challenge"], got custom-phone-provider

Auth0 Terraform Provider version

v1.9.0

Terraform version

1.7.5

@gamesagent gamesagent added the 🪲 bug Something isn't working label Dec 11, 2024
@duedares-rvj duedares-rvj self-assigned this Dec 19, 2024
@duedares-rvj
Copy link
Contributor

Hello.
I think I understand the issue you're facing, but in the steps to reproduce, did you mean supported_trigger instead of trigger because auth0_action doesn't support trigger.

Additionally, you can pass a list of maps in supported_trigger field.

The challenge might be if you are using supported_action_trigger resource for which the trigger list is not yet updated. Let me know what you think, we shall update this soon!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants