Azure AD B2C、Sendgrid - 请求者的 IP 地址未列入白名单
我已使用自定义策略将发送网格与 Azure AD B2C 集成以发送 OTP 代码。 https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-email-sendgrid?pivots=b2c-custom-policy#create-azure-ad-b2c-policy-key
发送网格已启用 IP 白名单,因此我在发送时收到错误“请求者的 IP 地址未列入白名单”来自 AD B2C 的 OTP。
来自App Insights的日志
outerMessage
Exception Message:Original Exception type:HttpResponseException, responseContent:{"errors":[{"message":"The requestor's IP Address is not whitelisted","field":null,"help":null}]}, Exception Type:PolicyException, CorrelationID:xxxxxxx
details
[{"outerId":"0","message":"Exception Message:Original Exception type:HttpResponseException, responseContent:{\"errors\":[{\"message\":\"The requestor's IP Address is not whitelisted\",\"field\":null,\"help\":null}]}, Exception Type:PolicyException, CorrelationID:xxxxx","type":"System.Exception","id":"42573161"}]
现在我需要将AD B2C租户的IP地址列入白名单,请分享如何获取AD B2C租户的IP地址范围。
I have integrated Send grid with the Azure AD B2C using Custom policies for sending the OTP codes.
https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-email-sendgrid?pivots=b2c-custom-policy#create-azure-ad-b2c-policy-key
The send grid is enabled with the IP whitelisting, So I am getting the error "The requestor's IP Address is not whitelisted" while sending OTP from AD B2C.
Logs from App Insights
outerMessage
Exception Message:Original Exception type:HttpResponseException, responseContent:{"errors":[{"message":"The requestor's IP Address is not whitelisted","field":null,"help":null}]}, Exception Type:PolicyException, CorrelationID:xxxxxxx
details
[{"outerId":"0","message":"Exception Message:Original Exception type:HttpResponseException, responseContent:{\"errors\":[{\"message\":\"The requestor's IP Address is not whitelisted\",\"field\":null,\"help\":null}]}, Exception Type:PolicyException, CorrelationID:xxxxx","type":"System.Exception","id":"42573161"}]
Now I need to whitelist the IP address of AD B2C tenant, Please share how to get the IP address range of the AD B2C Tenant.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您可以在此处下载 Azure IP 范围 。
Looks like you can download Azure IP ranges right here.