Skip to main content

A Python SDK for OAuth 2.0 functionality implementing multiple OAuth 2.0 standards

Project description

KeyCard AI OAuth SDK

A comprehensive Python SDK for OAuth 2.0 functionality implementing multiple OAuth 2.0 standards for enterprise-grade token management.

Installation

uv add keycardai-oauth

Quick Start

from keycardai.oauth import Client

with Client("https://oauth.example.com/token") as client:
    response = await client.exchange_token(
        subject_token="original_token",
        subject_token_type=TokenTypes.ACCESS_TOKEN,
        resource="https://api.example.com"
    )

Development

This package is part of the KeycardAI Python SDK workspace.

To develop:

# From workspace root
uv sync
uv run --package keycardai-oauth pytest

License

MIT License - see LICENSE file for details.

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

keycardai_oauth-0.5.0.tar.gz (68.9 kB view details)

Uploaded Source

Built Distribution

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

keycardai_oauth-0.5.0-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

Details for the file keycardai_oauth-0.5.0.tar.gz.

File metadata

  • Download URL: keycardai_oauth-0.5.0.tar.gz
  • Upload date:
  • Size: 68.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.19

File hashes

Hashes for keycardai_oauth-0.5.0.tar.gz
Algorithm Hash digest
SHA256 69447d421ff1234bfba97218076fb627728349e94d6ac9b14733e3d27f7289ce
MD5 4b91b21923b33d83ff689470a0652a6d
BLAKE2b-256 3f883d64cdc009786a4ac76f68180b6efaed86a113a1d2acd692e008c4b75ddc

See more details on using hashes here.

File details

Details for the file keycardai_oauth-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for keycardai_oauth-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ca06e263fff6bdb27c4f9bb4f37c1d6b8d53a5dc6bfeae50a71bd61a72cf03c
MD5 4c1b072a134ad3804243fe467f3a86a1
BLAKE2b-256 78e3ab784aee7bb289231f9a9507056db1a89308496452e10b0cdc9d8f60d0f6

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