Skip to main content

SAML/ECP authentication handler for python-requests

Project description

requests-ecp

A SAML/ECP authentication handler for python-requests.

Release status

PyPI version Conda version
License Supported Python versions

Development status

Build status Code coverage Documentation

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")

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page