Trigger azure function on user registration in b2c

旧巷老猫 提交于 2021-02-19 02:59:06

问题


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?

I followed this guide to create my B2C. What I want is to eg. send a welcome mail.


回答1:


Azure AD B2C does not have any support for custom emails events or custom triggers through its built-in policies.

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.

Check out the sample code for such Azure function in the sample SendMailWebHook function.

You can also request support for custom email events in the Azure AD B2C feedback forum



来源:https://stackoverflow.com/questions/48962303/trigger-azure-function-on-user-registration-in-b2c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!