使用同一应用程序但具有多个域的单点登录ASP.NET MVC [英] Single sign on using same application but multiple domains ASP.NET MVC

查看:58
本文介绍了使用同一应用程序但具有多个域的单点登录ASP.NET MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试跨多个域实现单点登录,但要在IIS下使用相同的Web应用程序.我们已经检查了一些解决方案,例如SAML和OAuth,但是不确定我们是否需要这两种方案中的任何一种.我们不知道如何在各个域之间共享Cookie,我认为不可能,但是如果我错了,请纠正我.

we are trying to implement single sign on, across multiple domains, but using the same web application under IIS. We have checked some solutions like SAML and OAuth however we are not sure we need anyone of these two. We dont know how we could share the cookie accross the domains, I dont think it's possible but correct me if I'm wrong.

当您访问youtube时,我们已经研究了google的解决方案,并且您已通过google帐户进行身份验证,它会提取您的用户名和信息,但是我们不知道他们如何做到这一点,因为它是另一个域,因此cookie不应前往youtube.如果您对如何操作有任何建议,欢迎他们.

We have looked at google's solution when you go to youtube and you are authenticated with your google account it pulls out your username and your info, but we have no idea how they do this, because it's another domain so the cookie should not travel to youtube. If you have any suggestions on how to do this they more than welcome.

推荐答案

您可以查看技术细节.

You may take a look at the following blog post in which Jeff Atwood explains the mechanism used by the StackExchange network to support cross domain single-sign-on relying on HTML5 Local Storage. And here are some more technical details.

这篇关于使用同一应用程序但具有多个域的单点登录ASP.NET MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆