Skip to main content

Add your description here

Project description

oidc-auth-client

Installing

pip install oidc-auth-client

Example usage

from oidc_auth_client import Config, AuthorizationCode, OidcProvider

access_token = AuthorizationCode(
    config=Config(
        client_id="<your-client-id>",
        oidc_provider=OidcProvider(
            openid_configuration_url="<auth-provider-url>/.well-known/openid-configuration"
        ),
        token_cache=TokenCache(),
    )
).get_token()

To allow the user to cache the token between usages, configure with a TokenCache. Will store the token in plaintext on the users system.

from oidc_auth_client import Config, TokenCache

config = Config(
    # ...
    token_cache=TokenCache(),
)

see some example usage in the examples folder.

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

oidc_auth_client-0.1.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oidc_auth_client-0.1.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file oidc_auth_client-0.1.2.tar.gz.

File metadata

  • Download URL: oidc_auth_client-0.1.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for oidc_auth_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1babd36b0d18decdb2af03e8de01aef9410b82ca45fdbd72b5dfb3a221d27ea3
MD5 cb27b23cf2f8418fe5bbfff2bf12d454
BLAKE2b-256 4509e94fb186ecef6163d9eabaa789b62d26cbc9b852b13686a4ac7c4891031c

See more details on using hashes here.

File details

Details for the file oidc_auth_client-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: oidc_auth_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for oidc_auth_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7fdd40955bbd316e9c4511edb91aac9a738e0674322cd8608824cd604c692f47
MD5 5ff28f50fc7733e4e1c09eddf95b0367
BLAKE2b-256 7b47cd4a335dae9cd903afd0ac134d1a506734a57371d2076ed39a4952dfc1f2

See more details on using hashes here.

Supported by

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