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.4.0.tar.gz (67.6 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.4.0-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for keycardai_oauth-0.4.0.tar.gz
Algorithm Hash digest
SHA256 89162a9ebf743f3ccee46b9242c185ef3c1cf1ba4ad48781ef8bb4ce63eb16dc
MD5 2060ca4b1a65b914cda453105c2797ef
BLAKE2b-256 95bfdaf46ba21aa6eea12e309821893e57c45fab92bd94a2510801ac8c0031fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keycardai_oauth-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2591f20846eb44de5833a8b20fd47b293fe2a2dd4ab93f8eb852557d00e61953
MD5 2e91b3abbbb13a74e0954cf2816e6cf3
BLAKE2b-256 7e618f108deb3828cd86c415b7d662db4f54a59bae55ef8eaf1873b4276cd848

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