SAML 身份提供程序的示例 .NET 代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5486118/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 15:25:23  来源:igfitidea点击:

Sample .NET code for a SAML Identity Provider

.netdocumentationsingle-sign-onsaml

提问by sheikhjabootie

I'd like to use SAML to allow authenticated users of a website to login to other federated sites. In single sign-on parlance, that means my site needs to become an Identity Provider.

我想使用 SAML 允许网站的经过身份验证的用户登录到其他联合站点。用单点登录的说法,这意味着我的站点需要成为身份提供者。

Can anyone point me to sample .NET code or documentation for implementing this?

任何人都可以指出我的示例 .NET 代码或文档来实现这一点吗?

采纳答案by flipdoubt

ComponentSpaceclaims to have example code for an Identity Provider and a 30-day trial, so you could at least look at the code.

ComponentSpace声称有身份提供者的示例代码和 30 天的试用期,因此您至少可以查看代码。

Not really an example of code for an Identity Provider, but CodeProject has a good article on Performing a SAML Post with C#.

不是身份提供者的真正代码示例,但 CodeProject 有一篇关于Performing a SAML Post with C#的好文章。

回答by Nix

We had really good success with the OpenSource library that KentorIThas produced. They give you all the tools you would need to roll your own. Including a stub identity provider that we were able to use as a test & basic auth services.

我们使用KentorIT生成的开源库取得了巨大成功。他们为您提供了自己制作所需的所有工具。包括我们能够用作测试和基本身份验证服务的存根身份提供者。