简体   繁体   English

如何在angular2应用程序中实现单点登录

[英]How to implement single sign on in angular2 application

I have a web application built using angular2 and I need to provide single sign on feature to my application. 我有一个使用angular2构建的Web应用程序,我需要为我的应用程序提供单点登录功能。 We don't want the user to key in login credentials, application should use user's windows credentials while trying to access it. 我们不希望用户键入登录凭据,应用程序在尝试访问它时应使用用户的Windows凭据。 I have no idea on how to get windows credentials using javascript/typescript from client. 我不知道如何从客户端使用javascript / typescript获取Windows凭据。

Any ideas on implementing this functionality is much appreciated. 任何有关实现此功能的想法都将受到赞赏。

What I would suggest is to get the User client SSL for authenticating. 我建议的是获取用户客户端SSL进行身份验证。 That is the best way to do that. 那是最好的方法。 You need to send SSL to user(In Enterprise users normally all laptop\\desktop have user certificates) and use it as SSO. 您需要将SSL发送给用户(在企业用户中,通常所有笔记本电脑\\台式机都具有用户证书)并将其用作SSO。

You may also ask user to install certificate if not available. 您还可以要求用户安装证书(如果不可用)。

Check in Javascript if a SSL Certificate is valid 检查Javascript中的SSL证书是否有效

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM