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)

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.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

requests_restish_auth-0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file requests-restish-auth-0.1.tar.gz.

File metadata

  • Download URL: requests-restish-auth-0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for requests-restish-auth-0.1.tar.gz
Algorithm Hash digest
SHA256 8c01da34eb4c73597d79d2e467f96cafc6ce3f224625e3d960b019d577abc35b
MD5 080e4f0aefab5378fe1aaf6f1d93fbe2
BLAKE2b-256 c3bc0a6b7d2e3ab9866aeee0914556f569722dda2ec8a1ef6647c88b99eb19c8

See more details on using hashes here.

File details

Details for the file requests_restish_auth-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for requests_restish_auth-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 780f9cc57807d04ef131f57265947d0ee6ce564a3493352e6e5067b010f1af9a
MD5 8f8a76ba6e845873eeb8b5405c78f8b0
BLAKE2b-256 77bedf29e7cb38a3fde6227b35b2c45a0496b003a766a55f601f45662ef07056

See more details on using hashes here.

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