Trigger azure function on user registration in b2c(在 b2c 中的用户注册上触发 azure 函数)
问题描述
当用户在我的 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 函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 b2c 中的用户注册上触发 azure 函数
- C# 中多线程网络服务器的模式 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 输入按键事件处理程序 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
