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.3.1.tar.gz
(27.5 kB
view hashes)
Built Distribution
Close
Hashes for requests_ecp-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9572fb91addb3e7e83567ad74b96f04bcf4b80a9b721dd18a8266f5c82661082 |
|
MD5 | 268935b564ce67128c7841b5c5d191c3 |
|
BLAKE2b-256 | 831ff783f3f7fc84dcba0b287c2be91bda459f2349704b204a316cdcc4b1ef56 |