简体   繁体   English

为SSO设置Identityserver3

[英]setup Identityserver3 for SSO

I have 3 MVC applications each of which uses a different DB to keep the users handled by Asp.Net Identity. 我有3个MVC应用程序,每个应用程序都使用不同的数据库来保持由Asp.Net Identity处理的用户。 These applications sometimes call some web APIs through Ajax calls. 这些应用程序有时通过Ajax调用来调用某些Web API。 I need to provide the SSO functionality using IdentityServer3 so that one of my MVC applications sever as the Identity Server and therefore if the users want to access any of these 3 applications, they just go (or be redirected to) the Login view of the main application and be authenticated using Asp.Net Identity. 我需要使用IdentityServer3提供SSO功能,以便将我的MVC应用程序之一与Identity Server分开,因此,如果用户要访问这3个应用程序中的任何一个,则只需进入(或重定向到)主应用程序的登录视图即可。应用程序,并使用Asp.Net Identity进行身份验证。 I have been trying for more than a week to make the samples provided on Internet to fit into my situation but so far no success. 我已经尝试了一个多星期,以使Internet上提供的样本适合我的情况,但到目前为止没有成功。 If someone could just give me the guideline it would be great cause I totally fill lost. 如果有人能给我指导,那将是非常重要的原因,因为我完全迷失了方向。

Note: It would be ideal if I could have a dedicated identity server manipulated by the ASP.Net Identity (for roles, ...). 注意:如果可以让一个专用的身份服务器由ASP.Net Identity(用于角色,...)操纵,那将是理想的。

There are a couple of example apps provided that do pretty much everything you require. 提供了一些示例应用程序,它们几乎可以满足您的所有需求。 Check out IdentityServer/IdentityServer3.Samples 签出IdentityServer / IdentityServer3.Samples

The two applications that directly apply to you are the AspNetIdentiy and the MVC samples. 直接适用于您的两个应用程序是AspNetIdentiyMVC示例。

You should really prepare yourself and set expectations for you boss that you are going to need a few days to study and understand Identity Server. 您应该真正做好准备,并为老板设定期望,您将需要几天时间来学习和理解Identity Server。 A lot of people seem to have impression that Identity Server is an application that you just install, configure and use, but it is closer to a application framework than an application. 许多人似乎都对Identity Server是一个仅安装,配置和使用的应用程序有印象,但是它比应用程序更接近应用程序框架。 The examples and the documentation is more than sufficient though if you apply yourself. 即使您自己动手,示例和文档也绰绰有余。

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

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