简体   繁体   English

Rest API 在自定义策略中调用 Azure AD B2C 登录

[英]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.

相关问题 Rest API 在 Azure AD B2C 中调用自定义策略 - Rest API call in custom policy in Azure AD B2C Azure AD B2C自定义登录策略显示SignUpSignIn - Azure AD B2C Custom SignIn Policy Displays SignUpSignIn 通过Azure AD B2C自定义策略尝试登录时,Discord api返回未经授权的401 - Discord api returns 401 unauthorized when trying signin via Azure AD B2C custom policy 使用无密码 azure B2C 登录自定义策略生成 Azure AD 登录日志的推荐方法是什么? - What is the recommended approach for generating Azure AD Signin logs with passwordless azure B2C signin custom policy? 带有 KMSI 的 Azure 广告 b2c 自定义策略,浏览器关闭后自动登录不起作用 - Azure ad b2c custom policy with KMSI, auto signin not working after browser close 启用了MFA的Azure AD B2C注册-登录策略-自定义登录页面 - Azure AD B2C SignUp-SignIn policy with MFA turned on - Custom Login Page Azure AD B2C - 只有通过自定义策略才能在首次登录场景中重置密码? - Azure AD B2C - Password Reset on First SignIn scenario only possible via Custom Policy? Azure B2C 自定义策略 REST API CALL 不适用于 Microsoft 帐户 - Azure B2C custom policy REST API CALL not working for Microsoft account 在调用自定义声明 REST API 时包括 Azure AD B2C aud 声明 - Include Azure AD B2C aud claim in call to custom claim REST API 如何从 Azure ad b2c 中的自定义策略更改 rest api 调用中的内容类型? - how to change content-type in rest api call from custom policies in Azure ad b2c?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM