简体   繁体   English

在Python中实现SAML客户端

[英]Implementing a SAML client in Python

I'd like to integrate a web site written in Python (using Pylons) with an existing SAML based authentication service. 我想将用Python编写的网站(使用Pylons)与现有的基于SAML的身份验证服务集成。 From reading about SAML, I believe that the IdP (which already exists in this scenario) will send an XML document (via browser post) to the Service Provider (which I am implementing). 从阅读有关SAML的内容来看,我认为IdP(已经存在于此场景中)将向服务提供商(我正在实施)发送XML文档(通过浏览器帖子)。 The Service Provider will need to parse this XML and verify the identity of the user. 服务提供者需要解析此XML并验证用户的身份。

Are there any existing Python libraries that implement this functionality? 是否有任何现有的Python库可以实现此功能?

Thank you, 谢谢,

I know you are looking for a Python based solution but there are quite a few "server" based solutions that would potentially solve your problem as well and require few ongoing code maintenance issues. 我知道您正在寻找基于Python的解决方案,但是有很多基于“服务器”的解决方案可能会解决您的问题并且几乎不需要代码维护问题。 For example, using the Apache or IIS Integration kits in conjunction with the PingFederate server from www.pingidentity.com would allow you to pretty quickly and easily support SAML 1.0, 1.1, 2.0, WS-Fed and OpenID for your SP Application. 例如,将Apache或IIS Integration套件与来自www.pingidentity.com的PingFederate服务器结合使用,可以非常快速,轻松地为SP应用程序支持SAML 1.0,1.1,2.0,WS-Fed和OpenID。

Hope this helps 希望这可以帮助

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

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