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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: oidcish-0.1.0.tar.gz
  • Upload date:
  • Size: 9.6 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.0.tar.gz
Algorithm Hash digest
SHA256 1352fecc3efc250bc2340dbd9b8d408a07fab8e5e7acd2a7eca836fde0efe96c
MD5 2dab44e31b919d33deae8bbb9bd22bcf
BLAKE2b-256 586fa205a286a1fbf5942e34af4cfc6b2d7f3b8cf469b8cc182d9fc418b7ca26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oidcish-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3fb13d71dda75cb328a3c94387db83da111bc713339dd00bc54cf43c12a1c5d
MD5 147deafaaf2ee8f4a5b9a7e3a9e25b70
BLAKE2b-256 52d41d5cd270fbfec7a5f85d69eb1637424d7276b14e50991c89dcdac5a435f1

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