Skip to main content

Python PKCE Client

This python package contains a simple client to request tokens using the OAuth 2/OIDC Authorization Code PKCE flow.

Sample usage

from terevintosoftware.pkce_client import PkceClient, PkceLoginConfig

config = PkceLoginConfig(
    authorization_uri="https://localhost:44300/connect/authorize",
    token_uri="https://localhost:44300/connect/token",
    scopes=[ "openid", "profile", "api" ],
    client_id="python-nb",
    internal_port=8888,
    add_random_state=True,
    random_state_length=32,
    verify_authorization_server_https=False
)

login_client = PkceClient(config)
pkce_token = login_client.login()
headers = { "Authorization": "Bearer " + str(pkce_token.access_token) }

Release files for TerevintoSoftware.PkceClient 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TerevintoSoftware.PkceClient 0.1.0
File Size Uploaded
TerevintoSoftware.PkceClient-0.1.0.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TerevintoSoftware.PkceClient 0.1.0
File Interpreter ABI Platform
TerevintoSoftware.PkceClient-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / TerevintoSoftware.PkceClient-0.1.0.tar.gz

Download URL TerevintoSoftware.PkceClient-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
da1ba1608dab27478297ec3a40dd78b6d66cc4f49c37a8b272330bf816e0d204
BLAKE2b-256 checksum
How to use checksums
561eff7978824bc80142bf6b2e905366f71b5c64f881653a9ffcf8a6528f39c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / TerevintoSoftware.PkceClient-0.1.0-py3-none-any.whl

Download URL TerevintoSoftware.PkceClient-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c04a9ad74faaf40bc54cf13000b5630733d7f1493ea7cdd2d03fb559d830d2dc
BLAKE2b-256 checksum
How to use checksums
770d62e3f854874b314baf5228a9f1a165c2c8f0b81f8b81e9b1753a3d87ee3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page