简体   繁体   English

在WCF中使用SAML实施SSO

[英]Implementation SSO using SAML in WCF

I am new to SSO and WCF(C#). 我是SSO和WCF(C#)的新手。 I need to implement SSO using SAML in WCF(C#). 我需要在WCF(C#)中使用SAML实现SSO。 I dont want to use any third party tools (Ex. componentspace). 我不想使用任何第三方工具(例如componentspace)。 Please could any one help me out. 请任何人能帮助我。 Thanks a lot. 非常感谢。

-Anto -安托

You may need to implement and customize a SecurityTokenService . 您可能需要实现和自定义SecurityTokenService

You can start looking with the samples provided WIF 4.5 samples . 您可以开始使用WIF 4.5 样本提供的样本进行查找。 For detailed explanation of WIF you can take a look at MSDN 有关WIF的详细说明,您可以看一下MSDN。

You need to understand what is WS-Trust and WS-Federation . 您需要了解什么是WS-TrustWS-Federation

Also you need to study what are active and passive SecurityTokenService(STS). 您还需要研究什么是主动和被动SecurityTokenService(STS)。 You can take a look in the samples and try implementing your own provider, that will provide you the Claims in the SAML token format of your choice. 您可以查看示例并尝试实现自己的提供程序,该提供程序将以您选择的SAML令牌格式为您提供Claims。 For security, you can use certificates to sign\\encrypt the tokens. 为了安全起见,您可以使用证书对令牌进行签名\\加密。

But before that, you need to identify what claims you want based on requirement and than you need to start writing the things. 但是在此之前,您需要根据需求确定要声明的内容,而不是开始编写内容。

Hope this helps! 希望这可以帮助!

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

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