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.1.tar.gz
(20.7 kB
view hashes)
Built Distribution
Close
Hashes for requests_ecp-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e99fda1707896a0ad1c80dd15d56fd797db2b0c027e04aba16b40ceb186f40 |
|
MD5 | 9b3c22c759e450e730504e4efbdc1195 |
|
BLAKE2b-256 | 1d18f29604d766d921d986e200f5278db1ab9ee83c27c22698709f8ed018d3d2 |