简体   繁体   English

使用SAML + C#.net的SSO

[英]SSO using SAML + C# .net

I know this question has asked many times on StackOverflow and might be duplicate. 我知道这个问题在StackOverflow上已经问了很多遍了,可能是重复的。 I have been reading almost 2 days on SSO, SAML, Identity Server , Kentor Authservices. 我已经阅读了将近2天的SSO,SAML,Identity Server和Kentor Authservices。 Now I am able to understand each individual term but I am still not able to connect the dots. 现在,我已经能够理解每个单独的术语,但是我仍然无法连接各个点。

I want to implement Single Sign On (SSO) in asp.net using C# SAML. 我想使用C#SAML在asp.net中实现单一登录(SSO)。

  • How to implement Identity provider? 如何实现身份提供者? Do I have to implement on my own? 我必须自己实施吗? (I will authenticate user against database) (我将根据数据库对用户进行身份验证)
  • How to implement service provider? 如何实施服务提供商?

This might looks silly but I am new to this. 这看起来可能很愚蠢,但是我对此并不陌生。 Any pointer or help would be appreciated. 任何指针或帮助,将不胜感激。

Thanks. 谢谢。

Why you want to use SAML? 为什么要使用SAML? Is it for supporting a legacy system? 它是否支持旧系统? anyway, if you would like to use identityServer3 , it supports wsfed via a wsfederation plugin, here is a sample that demonstrates how to make identity server supports wsfed using self-host , and this is a wsfed client sample, hope they help 无论如何,如果您想使用identityServer3 ,它通过wsfederation插件支持wsfed ,下面的示例演示了如何使用self-host来使身份服务器支持wsfed,这是wsfed客户端示例,希望对他们有所帮助

Use an OOTB IDP. 使用OOTB IDP。

eg ADFS, simpleSAMLphp, shibboleth, idsrv3 (with Kentor SAML plugin). 例如ADFS,simpleSAMLphp,shibboleth,idsrv3(带有Kentor SAML插件)。

For the SP, you need a client side SAML stack as per this . 对于SP,您需要按照this进行客户端SAML堆栈。

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

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