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

Uploaded Source

Built Distribution

requests_restish_auth-0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: requests-restish-auth-0.2.tar.gz
  • Upload date:
  • Size: 2.7 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.2.tar.gz
Algorithm Hash digest
SHA256 ec58043c3bd265ad7aad748d3427e8406c77d92bc58582e10603d2c7a3e0fa94
MD5 38990a45c8e95079227a7f315c2fbe89
BLAKE2b-256 d4fab697202a14d2ba71870adf17978d60946620f4e580f565aa561dec22e531

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for requests_restish_auth-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71a9e83143b3f690e8183d3ce4051a405a2050da35ed7ebb5e3627852bc7fc37
MD5 bb935c021e15c26155d80d45e222213a
BLAKE2b-256 7a6ddf40d5d96e41aac3323f9f44b982e7dbc12ba5b0909e116cc6d2e878ad3c

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