Skip to main content

Asgardeo SDK

Simple async Python SDK for Asgardeo authentication.

Installation

pip install asgardeo

Quick Start

from asgardeo import AsgardeoConfig, AsgardeoNativeAuthClient

# Setup
config = AsgardeoConfig(
    base_url="https://api.asgardeo.io/t/your-organization",
    client_id="your_client_id",
    redirect_uri="your_redirect_uri",
    client_secret="your_client_secret"  # Optional
)

# Authenticate
async with AsgardeoNativeAuthClient(config) as client:
    # Start flow
    init_response = await client.authenticate()
    
    # Complete with credentials
    auth_response = await client.authenticate(
        authenticator_id="BasicAuthenticator",
        params={"username": "user@example.com", "password": "password"}
    )
    
    # Get tokens
    if client.flow_status == "SUCCESS":
        tokens = await client.get_tokens()
        print(f"Access Token: {tokens.access_token}")

Features

  • Async/await support - Non-blocking operations
  • Auto resource cleanup - Context manager support
  • Simple API - One-line authentication
  • Error handling - Meaningful exceptions
  • Type hints - Full type support

Requirements

  • Python >= 3.10
  • httpx (async HTTP client)

Development

# Install dependencies
poetry install

# Build
poetry build

License

MIT License

Metadata

Release files for asgardeo 0.2.3

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

Source distribution (sdist)

Source distribution for asgardeo 0.2.3
File Size Uploaded
asgardeo-0.2.3.tar.gz 6.2 kB Details

Built distribution (wheel)

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

Total release size: 15.4 kB

Release files / asgardeo-0.2.3.tar.gz

Download URL asgardeo-0.2.3.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
03ca1f2c0abf26e35c0c166c9760c5425271bc539515a83437e0bdaa447253f8
BLAKE2b-256 checksum
How to use checksums
8ab677513e641d9406576010aad654491f54b5fc5fe9a0d0b718009933ecc1bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.10.20 Linux/6.17.0-1010-azure

Release files / asgardeo-0.2.3-py3-none-any.whl

Download URL asgardeo-0.2.3-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
345dddc50cbd0e393aec98f911fb68b5c436eee03c58c195f16cf438f667a2cf
BLAKE2b-256 checksum
How to use checksums
5c55f6419b47bad6ff02820e56d33278d44db6bdbda45089c2d4576abba400f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.10.20 Linux/6.17.0-1010-azure

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.1

2 release files

0.2.0

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