diff --git a/internal/utils/config_test.go b/internal/utils/config_test.go index 06b8873b9..9dae64279 100644 --- a/internal/utils/config_test.go +++ b/internal/utils/config_test.go @@ -41,6 +41,7 @@ func TestConfigParsing(t *testing.T) { t.Setenv("TWILIO_AUTH_TOKEN", "token") t.Setenv("AZURE_CLIENT_ID", "hello") t.Setenv("AZURE_SECRET", "this is cool") + t.Setenv("AUTH_SEND_SMS_SECRETS", "v1,whsec_aWxpa2VzdXBhYmFzZXZlcnltdWNoYW5kaWhvcGV5b3Vkb3Rvbw==") assert.NoError(t, LoadConfigFS(fsys)) // Check error assert.Equal(t, "hello", Config.Auth.External["azure"].ClientId) diff --git a/internal/utils/templates/init_config.test.toml b/internal/utils/templates/init_config.test.toml index f485c5218..aab9265d4 100644 --- a/internal/utils/templates/init_config.test.toml +++ b/internal/utils/templates/init_config.test.toml @@ -123,6 +123,11 @@ max_frequency = "5s" enabled = true uri = "pg-functions://postgres/auth/custom-access-token-hook" +[auth.hook.send_sms] +enabled = true +uri = "http://host.docker.internal/functions/v1/send_sms" +secrets = "env(AUTH_SEND_SMS_SECRETS)" + # Configure one of the supported SMS providers: `twilio`, `twilio_verify`, `messagebird`, `textlocal`, `vonage`. [auth.sms.twilio]