logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.33k stars 406 forks source link

feature request: add custom notification connectors support (webhooks instead of Email/SMS) #6082

Open ysemennikov opened 2 months ago

ysemennikov commented 2 months ago

What problem did you meet?

I would like to implement i18n for emails and populate them with additional information from my app's database.

Describe what you'd like Logto to have

My suggestion is adding a Webhook Email connector & Webhook SMS connector. So, for example, instead of using AWS SES as email connector, Logto could send webhooks to my app's API, and it will then call notification service (like Knock or Novu).

image

Example

  1. User clicks "Forgot password"
  2. Logto sends webhook event to my API
  3. My API receives the webhook, retrieves required data from database
  4. My API triggers Knock (notification service) to send the notification with OTP for restoring password
xiaoyijun commented 2 months ago

Hi @ysemennikov , thanks for your cool suggestion! @fleuraly would you like to take a look?