Closed grese closed 2 years ago
Just opened PR #417, and go-auth0/auth0 #230 which adds the options described in this PR to the auth0_connection
resource.
Just opened PR #417, and go-auth0/auth0 #230 which adds the options described in this PR to the
auth0_connection
resource.
what needs to happen to get this PR merged?
@tristan-curve - Essentially, go-auth0/auth0 #230 just needs to be merged before #417. It looks to me like both of the PRs still need review by @alexkappa. If there are any requested changes during the review process, I'll just have to update the PRs.
Closing this as this will now be available in the next release as https://github.com/alexkappa/terraform-provider-auth0/pull/417 got merged.
Thanks a lot for reporting this and opening the PR @grese !
Description
I'd like to request support for
gateway_url
,provider
,gateway_authentication
, andforward_request_info
fields in theauth0_connection
resource. This would be used to replace Twilio with a custom SMS provider. The changes required are summarized below.options
field, the following options would need to be added.provider
(string; would need to be set to "sms_gateway")gateway_url
(string; the url of the custom sms gateway)gateway_authentication
(map; contains the following fields used to authenticate the sms_gateway)method
(string; would need to be set to "bearer")subject
(string; subject claim for the HS256 token sent to sms_gateway)audience
(string; audience claim for the HS256 token sent to sms_gateway)secret
(string; secret used to sign the HS256 token sent to sms_gateway)secret_base64_encoded
(bool; indicates whether or not the secret is base64 encoded)forward_request_info
(bool; indicates whether or not request info should be forwarded to sms gateway)twilio_sid
(removed or set to "")twilio_token
(removed or set to "")The full setup of a custom SMS gateway for passwordless is described in this Auth0 post.
New or Affected Resource(s)
auth0_connection
resource would require updatesgopkg.in/auth0.v5
will also require updatesPotential Terraform Configuration
References
Community Note