Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python - Logging in to Site with 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.

Thank you

J

like image 609
code base 5000 Avatar asked Mar 11 '15 14:03

code base 5000


People also ask

Is SAML 2.0 Obsolete?

SAML 2.0 was introduced in 2005 and remains the current version of the standard. The previous version, 1.1, is now largely deprecated.

How does SAML 2.0 authentication work?

SAML works by exchanging user information, such as logins, authentication state, identifiers, and other relevant attributes between the identity and service provider. As a result, it simplifies and secures the authentication process as the user only needs to log in once with a single set of authentication credentials.


1 Answers

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.

like image 186
cbron Avatar answered Sep 20 '22 20:09

cbron