C#ASP.NET单点登录实现 [英] C# ASP.NET Single Sign-On Implementation
问题描述
我负责与登录实现单为我们的客户是我们的下一个版本的一部分。流存在如下:
I am tasked with implementing single sign-on for our customer's as part of our next release. The flow exists as follows:
- 用户登录到他们学校的主要门户系统。
- 用户点击链接到我公司的产品。
- ,如果他们已通过我们网站上的登录表单刚刚登录的用户将自动转到仪表板页面。
采用由学校提供给他/她一个学生ID /密码
因此,存在由其中用户可以认证到站点两种机制:
Thus, there are two mechanisms by which a user can be authenticated into our site:
- 即将对我们的产品的主页,并在使用我们在本地系统中存储的电子邮件/密码登录。
- 使用单点登录,其中学生已经登录到学校与学生的ID和密码,主系统。
如果我们的产品的实现是ASP.NET(相对的Java /红宝石),我们应该使用CAS,JOSSO,或其他一些第三方单一登录产品?或者是有可用的.NET环境的东西这将是我们简单的作为一个.NET的公司?
If our product's implementation is in ASP.NET (as opposed to Java/Ruby), should we be using CAS, JOSSO, or some other third party single sign-on product? Or is there something available to a .NET environment which would be simpler for us as a .NET company?
推荐答案
有实现SSO的.NET应用程序的多个选项。
There are multiple options to implement SSO for a .NET application.
看看下面的在线教程:
的单点登录的基础 2012年7月的
<一个href=\"http://www.$c$cproject.com/Articles/429166/Basics-of-Single-Sign-on-SSO\">http://www.$c$cproject.com/Articles/429166/Basics-of-Single-Sign-on-SSO
GaryMcAllisterOnline:ASP.NET MVC 4,ADFS 2.0和第三方STS集成(IdentityServer2) 2013年1月的
<一个href=\"http://garymcallisteronline.blogspot.com/2013/01/aspnet-mvc-4-adfs-20-and-3rd-party-sts.html\">http://garymcallisteronline.blogspot.com/2013/01/aspnet-mvc-4-adfs-20-and-3rd-party-sts.html
第一个使用ASP.NET Web窗体,而第二个使用ASP.NET MVC4。
The first one uses ASP.NET Web Forms, while the second one uses ASP.NET MVC4.
如果您的要求,您可以使用第三方解决方案,也可以考虑的OpenID。有一个名为 DotNetOpenAuth一个开源库。
If your requirements allow you to use a third-party solution, also consider OpenID. There's an open source library called DotNetOpenAuth.
有关更多信息,请参阅MSDN博客文章<一个href=\"http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx\">Integrate OpenAuth / OpenID的使用通用提供商现有的ASP.NET应用程序。
For further information, read MSDN blog post Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers.
希望这有助于!
这篇关于C#ASP.NET单点登录实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!