Azure B2C 使用策略配置 OTP 参数

Azure B2C configure OTP parameters using policies

我正在尝试使用策略而不是用户 flows.For 配置 B2C 租户,我正在使用 SocialAndLocalAccount template as start base. One of the things I'd like to do is to configure the email's verification parameters so I can choose the code's length, expiration time, etc. I don't really care about having a custom email like the example with SendGrid,只是希望能够配置基本参数。

我一直在关注他们在文档中提供的 otp 示例并设法正确显示该选项,但我在单击 "Send Code" 时从未收到电子邮件。我错过了什么吗?还有其他方法可以实现吗?

我是 Azure B2C 和策略的新手,所以如果你有任何建议,我将不胜感激。谢谢!

目前,如果您想在 B2C 中使用自定义 OTP 生成,则必须使用外部邮件提供商。内置的电子邮件验证具有单独的组合 OTP 和邮件提供商服务,无法分离。