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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| asgardeo-0.2.3.tar.gz | 6.2 kB | Without provenance | Details for asgardeo-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asgardeo-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for asgardeo-0.2.3-py3-none-any.whl |
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
|
Security for asgardeo 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.