Skip to main content

Add SAML support to your Python softwares using this library. Forget those complicated libraries and use that open source library provided and supported by OneLogin Inc.

This version supports Python3, exists an alternative version that only support Python2: python-saml

Why add SAML support to my software?

SAML is an XML-based standard for web browser single sign-on and is defined by the OASIS Security Services Technical Committee. The standard has been around since 2002, but lately it is becoming popular due its advantages:

  • Usability - One-click access from portals or intranets, deep linking, password elimination and automatically renewing sessions make life easier for the user.

  • Security - Based on strong digital signatures for authentication and integrity, SAML is a secure single sign-on protocol that the largest and most security conscious enterprises in the world rely on.

  • Speed - SAML is fast. One browser redirect is all it takes to securely sign a user into an application.

  • Phishing Prevention - If you don’t have a password for an app, you can’t be tricked into entering it on a fake login page.

  • IT Friendly - SAML simplifies life for IT because it centralizes authentication, provides greater visibility and makes directory integration easier.

  • Opportunity - B2B cloud vendor should support SAML to facilitate the integration of their product.

General description

OneLogin’s SAML Python toolkit let you build a SP (Service Provider) over your Python application and connect it to any IdP (Identity Provider).

Supports:

  • SSO and SLO (SP-Initiated and IdP-Initiated).

  • Assertion and nameId encryption.

  • Assertion signature.

  • Message signature: AuthNRequest, LogoutRequest, LogoutResponses.

  • Enable an Assertion Consumer Service endpoint.

  • Enable a Single Logout Service endpoint.

  • Publish the SP metadata (which can be signed).

Key features:

  • saml2int - Implements the SAML 2.0 Web Browser SSO Profile.

  • Session-less - Forget those common conflicts between the SP and the final app, the toolkit delegate session in the final app.

  • Easy to use - Programmer will be allowed to code high-level and low-level programming, 2 easy to use APIs are available.

  • Tested - Thoroughly tested.

  • Popular - OneLogin’s customers use it. Add easy support to your django/flask web projects.

Installation

Dependences

  • python 2.7 // python 3.3

  • xmlsec Python bindings for the XML Security Library.

  • isodate An ISO 8601 date/time/duration parser and formater

Review the setup.py file to know the version of the library that python3-saml is using

Code

Option 1. Download from github

The toolkit is hosted on github. You can download it from:

Copy the core of the library (src/onelogin/saml2 folder) and merge the setup.py inside the python application. (each application has its structure so take your time to locate the Python SAML toolkit in the best place).

Option 2. Download from pypi

The library is hosted in pypi, you can find the python3-saml package at https://pypi.python.org/pypi/python3-saml

You can install it executing:

pip install python3-saml

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python3-saml-1.1.3.tar.gz (64.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

python3_saml-1.1.3-py3-none-any.whl (64.3 kB view details)

Uploaded Python 3

python3_saml-1.1.3-py2-none-any.whl (64.3 kB view details)

Uploaded Python 2

File details

Details for the file python3-saml-1.1.3.tar.gz.

File metadata

  • Download URL: python3-saml-1.1.3.tar.gz
  • Upload date:
  • Size: 64.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python3-saml-1.1.3.tar.gz
Algorithm Hash digest
SHA256 aa6b3300e647bf3b411e13386dac1aec37b31d07b71c7611a0f5b88f3c079106
MD5 533ea2a56be6aa1ba54768c4978fce30
BLAKE2b-256 a40daae25ba100ac8e9b06018f554c5a2a40f89be0f25b5908f2ad23dc3ad5af

See more details on using hashes here.

File details

Details for the file python3_saml-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python3_saml-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c9fa011e2bdd54962b047a9110166a6abe3036189fe9520ca5d9947ea274aa84
MD5 151b5661f629268ec48fa9dda6bbc5fc
BLAKE2b-256 2bc20789b91ffa8570e6723f9d76e11330de1c2604fae14ecc29ed480002db65

See more details on using hashes here.

File details

Details for the file python3_saml-1.1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for python3_saml-1.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 c4c51e30a820d2fe52c18221706a7b17fd77f55d183a720fcfbafaf21ac46cc6
MD5 7f95f040c9c521e9398ee2a2635123f2
BLAKE2b-256 88342f6c5698034e8662ffd57873b5a6c0c51e9be19500a16825bf04e2a7494a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page