Python - Logging in to Site with SAML 2.0

时光总嘲笑我的痴心妄想 提交于 2019-12-12 01:53:34

问题


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.

Thank you

J


回答1:


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

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.

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

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.



来源:https://stackoverflow.com/questions/28989567/python-logging-in-to-site-with-saml-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!