SAML/ECP authentication handler for python-requests
Project description
requests-ecp
A SAML/ECP authentication handler for python-requests.
Release status
Development status
Installation
See https://requests-ecp.readthedocs.io/en/latest/#installation for installation instructions.
Basic usage
Attach the HTTPECPAuth
object to your Requests
Session and the relevant authentication will happen whenever required.
>>> from requests import Session
>>> from requests_ecp import HTTPECPAuth
>>> with Session() as sess:
... sess.auth = HTTPECPAuth("https://idp.university.ac.uk/idp/profile/SAML2/SOAP/ECP")
... sess.get("https://data.university.ac.uk/mydata.dat")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requests-ecp-0.2.0.tar.gz
(21.0 kB
view hashes)
Built Distribution
Close
Hashes for requests_ecp-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fd3f5332c0e30293c2d90e75ee133e668704fa50b8db895562a92064c8b6eca |
|
MD5 | 44edb4160fd539abb3f10d2fe065d452 |
|
BLAKE2b-256 | 0c5c472b582d1fdf0e33e73a04656fc0e1306093869e372af6682b735f659b6e |