问题描述
当用户在我的 azure AD B2C 中注册时,我想触发一个函数.但我找不到这方面的任何例子.用户是否添加到任何队列或存储在任何表中?或者当用户点击我应用中的注册"按钮时,我是否需要查看回复?
I want to trigger a function when a user registers in my azure AD B2C. But I can't find any examples on this. Is the user added to any queue or stored in any table? Or do I need to look at the respons back when the user clicks the "register" button in my app?
我关注了这个 指南 创建我的 B2C.我想要的是例如.发送欢迎邮件.
I followed this guide to create my B2C. What I want is to eg. send a welcome mail.
推荐答案
Azure AD B2C 通过其内置策略不支持自定义电子邮件事件或自定义触发器.
Azure AD B2C does not have any support for custom emails events or custom triggers through its built-in policies.
但是,您可以使用 Azure AD B2C 自定义策略 到 调用 REST API,该 API 在身份验证流程中发送电子邮件.您可以使用 Http Triggered 轻松实现此 REST APIAzure 函数.
However, you can use Azure AD B2C custom policies to call out to a REST API that sends an email as part of the authentication flow. You can easily implement this REST API using an Http Triggered Azure Function.
查看示例中此类 Azure 函数的示例代码 SendMailWebHook 函数.
Check out the sample code for such Azure function in the sample SendMailWebHook function.
您还可以在 Azure AD B2C 反馈论坛
这篇关于在 b2c 中的用户注册上触发 azure 函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!