Azure AD B2C,Sendgrid - 请求者的 IP 地址未列入白名单
Azure AD B2C, Sendgrid - The requestor's IP Address is not whitelisted
我已将发送网格与 Azure AD B2C 集成在一起,使用自定义策略发送 OTP 代码。
https://docs.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地址范围
我已将发送网格与 Azure AD B2C 集成在一起,使用自定义策略发送 OTP 代码。 https://docs.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地址范围