简体   繁体   English

如何使用 angular 在前端使用 Azure b2c 身份验证

[英]how to use Azure b2c Authentication on front-side with angular

so I want to enable Azure b2c authentication only on front side.所以我只想在前端启用 Azure b2c 身份验证。 my front-side is on http://localhost:4200 (Angular) my back-end is on http://localhost:3000 (Node + Express)我的前端在http://localhost:4200 (Angular) 我的后端在http://localhost:3000 (Node + Express)

I want that before someone will land on http://localhost:4200/index he Will have to be authenticated with azure b2c (signup & login through google/email).我希望在有人登陆http://localhost:4200/index 之前,他必须通过 azure b2c 进行身份验证(通过 google/email 注册和登录)。 so there is no need with deployment on back-end.所以不需要在后端部署。

how can I do so.我怎么能这样做。

I have azure account and already created AD B2C profile.我有 azure 帐户并且已经创建了 AD B2C 配置文件。

thanks for any helping here.感谢您的帮助。

从这里的角度示例开始: https : //github.com/azure-ad-b2c/apps/tree/master/apps

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Angular 4.5 Service中未定义的Msal用于Azure B2C身份验证 - Msal undefined in Angular 4.5 Service for Azure B2C authentication Angular Azure Active Directory B2C 身份验证 - CORS 问题 - Angular Azure Active Directory B2C Authentication - CORS issue Angular 8 与 Azure B2C 身份验证(使用 MSAL.js) - Angular 8 with Azure B2C Authentication (using MSAL.js) Angular Azure B2C SSO问题 - Angular Azure B2C SSO issue Azure Ad B2C:如何使用 msal-angular 传递在重定向中仍然可用的参数 url - Azure Ad B2C: How to use use msal-angular to pass parameter which still available in redirect url Azure B2C AD重定向到Angular应用程序 - Azure B2C AD Redirect to Angular App Azure B2C Authentication (angular + .net core Web API) - Neither scope or roles claim was found in the bearer token - Azure B2C Authentication (angular + .net core Web API) - Neither scope or roles claim was found in the bearer token 在 NativeScript angular 应用程序中使用 Azure AD B2C 进行身份验证 - Authenticate using Azure AD B2C in a NativeScript angular Application 如何阻止用户登录,直到他们在 Azure B2C 中获得授权 - how to stop users logging in until they are authorised in Azure B2C 如何让我的 angular 应用程序与我可以在 Azure 门户中按下的 b2c“撤销会话”按钮一起工作 - How do I get my angular application to work with b2c “revoke session” button which I can press in the Azure portal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM