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

Feature Request: Support for Messengers & Message Templates #236

Open
Akeboshiwind opened this issue Sep 20, 2023 · 1 comment
Open

Feature Request: Support for Messengers & Message Templates #236

Akeboshiwind opened this issue Sep 20, 2023 · 1 comment

Comments

@Akeboshiwind
Copy link
Contributor

Akeboshiwind commented Sep 20, 2023

It seems that for now there are two types of messenger resources supported in FusionAuth, twillo & generic.
There's also templates for messages.

It would be great if this provider could support them too!

API Docs:


I'm imaging there would be a resources for each with accompanying data resources, looking something like this:

resource "fusionauth_generic_messenger" "generic_messenger" {
  name = "Generic Messenger"
  url = "https://www.example.com/webhook"
  debug = false

  data = {
    "foo": "bar"
  }

  headers = {
    "Content-Type": "application/json"
  }
  http_authentication {
    username = "something"
    password = "something"
  }
  ssl_certificate = "xxxx"

  connect_timeout = 1000
  read_timeout = 1000
}

resource "fusionauth_message_template" "default_two_factor_request" {
  name = "Default Two Factor Request"
  default_template = "Here's your Two Factor Code: \$\{code\}"

  localized_templates = {
    "de": "Hier ist Ihr Zwei-Faktoren-Code: \$\{code\}",
    "es": "Este es su código de dos factores: \$\{code\}"
  }
}

data "fusionauth_generic_messenger" "generic_messenger" {
  name = "Generic Messenger"
  # or
  # id = "e31e242b-4eca-4309-921f-48cb72ec9bfb"
}
@Akeboshiwind Akeboshiwind changed the title Feature Request: Support for Messengers Feature Request: Support for Messengers & Message Templates Sep 20, 2023
@chrisrogersFS
Copy link

This would be a fantastic addition, and currently it's blocking my work with terraform for fusion_auth

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

No branches or pull requests

2 participants