Python - 使用 SAML 2.0 登录站点 [英] Python - Logging in to Site with SAML 2.0

查看:75
本文介绍了Python - 使用 SAML 2.0 登录站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难找到资源来帮助我解决我遇到的问题.我有一个使用 SAML 2.0 保护的站点.有人可以指出我如何使用 SAML 2.0 登录站点的资源吗?大多数 Python 模块似乎都与实现 SAML 2 有关,我只需要登录到实现 SAML 2.0 的站点.

I am struggle to find resources to help me with an issue I have. I have a site secured with SAML 2.0. Can someone point me to a resource(s) showing how to login to a site using SAML 2.0? Most of the python modules out there seem to be in regards of implementing SAML 2, I just need to login to a site implementing SAML 2.0.

谢谢

J

推荐答案

Python-saml 可以帮助您做到这一点:https://github.com/onelogin/python-saml

Python-saml can help you do that: https://github.com/onelogin/python-saml

我发现了一些其他项目,但似乎没有一个有很好的文档记录.作为警告,它仍然相当复杂.那里的 demo-flask 或 demo-django 应用程序会有所帮助.

There are a few other projects that I've found but none seem to be very well documented. And as a warning its still quite complicated. The demo-flask or demo-django apps in there will help out.

如果其他人对它的详细工作原理有更好的解释,我希望看到它,但到目前为止维基页面是最有帮助的:http://en.wikipedia.org/wiki/SAML_2.0

If anyone else has a better explanation of how it all works in detail I would like to see it, but the wiki page has been the most helpful so far: http://en.wikipedia.org/wiki/SAML_2.0

另外,这个问题之前也有人问过:用于实现基于 SAML2 的服务提供者和身份提供者的 Python 库?.

Also, this question has been asked before here: Python library for implementing SAML2 based service provider and identity provider?.

登录他们的应用实际上是服务提供者.身份提供者是您对其进行身份验证的服务器.

The app logging them in is actually the service provider. The identity provider is the server you authenticate them with.

这篇关于Python - 使用 SAML 2.0 登录站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆