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.1.tar.gz (68.2 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.1-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for keycardai_oauth-0.4.1.tar.gz
Algorithm Hash digest
SHA256 5da2d2ef5ec68bd18da40fbace0276135e54216ffba5588b177e0821a26ad19c
MD5 34bb2f800959f974147945f4058281c8
BLAKE2b-256 3a2a1f72d7d6468d9c9d0b3d078a077f37feec2d51e91e21c1007a73ac6d76f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keycardai_oauth-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 059072de4bfbcdc9613e44102405e1fff0679fbb6b0b96b2d8ebc428fab81420
MD5 e91b93977b731d2af25f4a41cba53c36
BLAKE2b-256 64113f6174b3a81c3fac735ea788306f4bb8cace9c3d26757dd19b297a8c6d88

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