Azure Active Directory B2C:在两个应用程序上运行? (全栈前端+服务器端Web API)
是否可以在两个应用程序上运行Azure Active Directory B2C?
该平台有两件事:
- 服务器上的全栈前端应用程序(Next.js)。需求:身份验证+授权。
- ASP.NET Core Web API在另一台服务器上。需求:授权。
该平台将在Next.js客户端/服务器上具有社交登录名,然后使用它来授权在Next.js Server API或Net Core webAPI上进行端点。
使该流程起作用的一般描述是什么?
Is it possible to run Azure Active Directory B2C on two apps in tandem?
The platform have two things:
- full-stack front-end application (Next.js) on a server. Needs: Authentication+Authorization.
- ASP.Net Core Web API on another server. Needs: Authorization.
The platform would have social logins on the next.js client/server and then use that to authorize endpoints on either the next.js server api or the net core webapi.
What would be a general description to get this flow working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。您可以将所有这些客户与Azure AD B2C集成。您可以在此处找到可以与所有应用程序类型集成的指南:
https://learn.microsoft.com/en-us/azure/active-directory-b2c/integrate-with-app-code-smamples
您的前端应用页面应用程序'或“ Web应用程序”,如该URL所示,您的后端应用程序将在“ API”下。
您描述的场景正是Azure AD B2C的目的。您的用户从前端应用程序进行身份验证,然后您可以使用其会话令牌授权在后端服务上访问。
我建议您查看该页面上的指南。
Yes. You can integrate all of those clients with Azure AD B2C. You can find guides to integrate with all application types here:
https://learn.microsoft.com/en-us/azure/active-directory-b2c/integrate-with-app-code-samples
Your front end application sounds like a 'Single Page App' or 'Web App' as shown at that URL and your backend application would be under "API's".
The scenario you described is exactly what Azure AD B2C is for. Your user authenticates from a front-end application and then you can use their session token to authorize access on your backend service.
I would recommend you take a look at the guides on that page.