[英]Rest API call during Azure AD B2C SignIN in Custom Policy
Is there a way to do Rest API calls during Sign In in Azure AD B2C policy?有没有办法在 Azure AD B2C 政策登录期间拨打 Rest API 电话?
I want to add few properties in claims at the time when user sign in to the application.我想在用户登录应用程序时在声明中添加一些属性。 I can see that it is possible while sign up https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-rest-api-step-custom我可以看到注册时有可能https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-rest-api-step-custom
But is it possible during Sign In as well?但是在登录期间也可以吗?
If you are using custom policy, it's very similar to Sign-up.如果您使用自定义策略,它与注册非常相似。 You create the technical profile for your REST endpoint and use it either as a ValidationTechnicalProfile in your 'sign-in' technical profile or add it as an orchestration step - depends what you want to do.您为 REST 端点创建技术配置文件,并将其用作“登录”技术配置文件中的 ValidationTechnicalProfile 或将其添加为编排步骤 - 取决于您想要做什么。 Any particular problem you are facing while adding this in your sign-in journey?在您的登录过程中添加此功能时您遇到了任何特殊问题?
I don't have any issue while I am adding sing-in journey.我在添加 sing-in 旅程时没有任何问题。 can call REST API successfully and can received other input values except password value.可以成功调用REST API,可以接收除密码值以外的其他输入值。
Below is the output result from my function app:以下是我的 function 应用程序的 output 结果:
GetExternalSystemIdOnLogin got request body: GetExternalSystemIdOnLogin 得到请求正文:
{
"email": "xxxx@test.com",
"objectId": "dec23a2c-64c3-49c4-9943-4cfe0cffa0ed"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.