SAML/ECP authentication handler for python-requests
Project description
requests-ecp
A SAML/ECP authentication handler for python-requests.
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.1.0.tar.gz
(19.9 kB
view hashes)
Built Distribution
Close
Hashes for requests_ecp-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c6f1c65d93a7e45d40ae4d98a8c41ce9c4f325ba91cbf8830af5a55d3ea318 |
|
MD5 | bb9e5e79faf095d46de238c9f2735a03 |
|
BLAKE2b-256 | f4e405e34ce93d198590f5ec75595856336880988ecd2f37b4a2fa43a4b02015 |