[英]Azure AD Single Sign On
My company has developed a web-based application for internal and external use.我公司开发了一个基于网络的应用程序供内部和外部使用。 The application is developed by angular + asp.net WebApi and authorised by OAuth.应用由angular + asp.net WebApi开发,OAuth授权。 Users have to use the username and password given by us to login.用户必须使用我们提供的用户名和密码登录。 The application works well.该应用程序运行良好。 Recently, clients made a new request to login our system through Azure AD SSO.最近,客户提出了通过 Azure AD SSO 登录我们系统的新请求。 They want us to integrate their Azure AD.他们希望我们集成他们的 Azure AD。
Requirements:要求:
I have no knownledge about Azure AD SSO and still get confused even I did some search on google.我对 Azure AD SSO 一无所知,即使我在谷歌上进行了一些搜索,仍然感到困惑。 Can someone give me some advice or hints?有人可以给我一些建议或提示吗?
Using Msal with Angular you can implement the Azure AD SSO login.将 Msal 与 Angular 结合使用,您可以实现 Azure AD SSO 登录。 There are multiple code samples and microsoft documents available to achieve your requirement.有多个代码示例和微软文档可用于满足您的要求。
Please go through the documentation and code Sample .请阅读文档和代码 Sample 。
In the Angular sample there is a function as mentioned below which verifies the user credentials if the user is already logged in or not.在 Angular 示例中,有一个如下所述的函数,用于验证用户是否已登录。
checkoutAccount() {
this.loggedIn = !!this.authService.getAccount();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.