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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size requests_ecp-0.2.2-py3-none-any.whl (20.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size requests-ecp-0.2.2.tar.gz (22.4 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for requests_ecp-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7302c27ffe7647a0babf543baaf00cc40f8715f3b5d810df9dc4284c5312042b |
|
MD5 | ad03b012c87fbfd7ce2b33fcac01f95f |
|
BLAKE2-256 | 43040fa84dc6004b58a5f941d29f44efa18ec2b33b3a948f31f4b27bf5877e5c |