Azure Active Directory B2C:在两个应用程序上运行? (全栈前端+服务器端Web API)

发布于 2025-02-04 06:36:09 字数 271 浏览 3 评论 0原文

是否可以在两个应用程序上运行Azure Active Directory B2C?
该平台有两件事:

  1. 服务器上的全栈前端应用程序(Next.js)。需求:身份验证+授权。
  2. 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:

  1. full-stack front-end application (Next.js) on a server. Needs: Authentication+Authorization.
  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

茶底世界 2025-02-11 06:36:09

是的。您可以将所有这些客户与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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文