[英]Server side login for Active Directory B2C
I would like to communicate with the Active Directory B2C from my backend to manage users.我想从我的后端与 Active Directory B2C 通信以管理用户。 This seems possible here: https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0这在这里似乎是可能的: https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0
However, I don't see how to get a login token (or cookies) for a user so the server can send it back to the front-end to have it logged-in.但是,我看不到如何为用户获取登录令牌(或 cookie),以便服务器可以将其发送回前端以使其登录。 How is it possible to implement this scenario?如何实现这种场景?
I have seen this link but it refer to OAuth.我看过这个链接,但它指的是 OAuth。 https://docs.microsoft.com/en-us/azure/active-directory-b2c/add-ropc-policy?tabs=app-reg-ga&pivots=b2c-custom-policy https://docs.microsoft.com/en-us/azure/active-directory-b2c/add-ropc-policy?tabs=app-reg-ga&pivots=b2c-custom-policy
Thanks!谢谢!
Azure B2C auth flow cannot generate an access token for Microsoft Graph. Azure B2C 身份验证流无法为 Microsoft Graph 生成访问令牌。
You need to implement AAD auth flow by following Get access without a user or Get access on behalf of a user .您需要按照Get access without a user或Get access for a user 来实现 AAD 身份验证流程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.