Skip to main content

No project description provided

Project description

oidcish

  • "Oh I Don't Care If Something Happens"
  • "OIDC Is Definitely Cool If Someone Helps"

What?

Library to connect to your OIDC provider via:

  • Authentication code flow
  • Device code flow

Usage

>>> from oidcish import DeviceFlow, CodeFlow
>>> auth = DeviceFlow(host="https://example.idp.com")
Visit https://idp.example.com/device?userCode=594658190 to complete sign-in.
# Or
# auth = CodeFlow(host="https://example.idp.com")
>>> print(auth.credentials.access_token)
eyJhbGciOiJSU...

Options

Device flow can be used with the following options:

Option Default Description
client_id No default The client id.
client_secret No default The client secret.
scope openid profile offline_access A space separated, case-sensitive list of scopes.
audience No default The access claim was designated for this audience.

Code flow can be used with the following options:

Option Default Description
client_id No default The client id.
client_secret No default The client secret.
redirect_uri http://localhost Must exactly match one of the allowed redirect URIs for the client.
username No default The user name.
password No default The user password.
scope openid profile offline_access A space separated, case-sensitive list of scopes.
audience No default The access claim was designated for this audience.

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

oidcish-0.1.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

oidcish-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file oidcish-0.1.1.tar.gz.

File metadata

  • Download URL: oidcish-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.8.5 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for oidcish-0.1.1.tar.gz
Algorithm Hash digest
SHA256 30611c7b9a3fbeb2ecddd9bcbe8bf182f80d4118fbcd6ccb4966d492bef201a8
MD5 ec65c23acb7f274b635616c4e05e7c77
BLAKE2b-256 cae65f9ad2de7950982447b47fd5c923ea3addc257d17c5fc159cc1d6c7d2bc9

See more details on using hashes here.

File details

Details for the file oidcish-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: oidcish-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.8.5 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for oidcish-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c998096fb8526f33042957c21b044114334e065ef735a111089c9faebea474e6
MD5 72de6ed8f5efa1fe9c58b8e29f328f13
BLAKE2b-256 421d5c985ef4f4179f5f0ff4cdaba00908565927668fe2c9da017f79c0264896

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