Skip to main content

Authenticate requests by shelling-out to restish for an OIDC flow

Project description

This package lets you shell-out to restish for negotiating a bearer token with an OIDC provider, and use that token for authenticating requests.

Installation

pip install requests-restish-auth

Usage

import requests
from restish_auth import RestishAuth

auth = RestishAuth("my-restish-api-name")
response = requests.get("https://my-api-endpoint.com/", auth=auth)

Changelog

  • 0.3 (2023-09-05): Compatibility with Restish 0.18’s new config location. For older versions of restish, use previous versions of requests-restish-auth.

  • 0.2 (2022-09-16): Load token lazily.

  • 0.1 (2022-09-14): Initial version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requests-restish-auth-0.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

requests_restish_auth-0.3-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

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