Skip to main content

Aegis Authentication SDK for Python.

Project description

Test Coverage Package version Supported Python versions

English | 简体中文


Aegis Auth SDK

🚀 Core Value: Making Authentication Simple and Secure

Aegis Auth SDK is a modern authentication toolkit for Web applications, built on the WebAuthn (FIDO2) standard. It enables developers to quickly implement passwordless authentication, fundamentally eliminating the security risks and usability issues associated with traditional passwords.


🌟 Key Features

1. Excellent Developer Experience

  • Out-of-the-box: Install via pip with zero complex setup
  • Highly abstracted: WebAuthn complexity is fully encapsulated
  • Fast integration: Implement registration and login in minutes

2. Secure & Compliant Passwordless Solution

  • Passwordless by design: Eliminates password reuse, phishing, and credential stuffing
  • Minimal sensitive data: Only public keys stored server-side, no biometric raw data
  • Anti-automation: Challenge-response mechanism prevents brute-force and bot attacks

3. Cross-platform & Biometric Support

  • Multi-platform compatibility:
    • Windows Hello
    • macOS Touch ID
    • iOS / Android (Face ID / Fingerprint)
  • Device binding: Strong "User + Device" trust model

4. Enterprise-grade User Management

  • Unified user view: Credential management, device解绑, status control
  • Audit logs: Full authentication traceability
  • SSO friendly: Easily integrates with enterprise identity systems (e.g., yiducloud.cn)

🛠 Quick Start

Installation

pip install aegis-auth-sdk

SDK Example

from aegis_auth_sdk import AegisClient

client = AegisClient(
    base_url="https://your-server:8000",
    app_id="your_app_id",
    secret_key="your_secret_key"
)

info = client.get_app_info()
print(info)

users = client.get_users()
for user in users["users"]:
    print(f'{user["username"]} - Status: {user["status"]}')

client.set_user_status("alice", False)
client.delete_user("alice")

logs = client.get_logs(page=1, page_size=10, log_type="auth_verify")

🌐 Integration Example

Frontend Example

// (Same as your original frontend example)

Backend Example

# (Same as your original backend example)

⚠️ Error Codes

HTTP Status Meaning Description
200 OK Request successful
400 Bad Request Missing or invalid parameters
401 Unauthorized Invalid App ID / Secret or app disabled
404 Not Found Resource not found
500 Server Error Internal server error

📦 Error Response Format

{ "error": "Error message" }

or:

{ "detail": "Error message" }

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

aegis_auth_sdk-0.0.6.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

aegis_auth_sdk-0.0.6-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file aegis_auth_sdk-0.0.6.tar.gz.

File metadata

  • Download URL: aegis_auth_sdk-0.0.6.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aegis_auth_sdk-0.0.6.tar.gz
Algorithm Hash digest
SHA256 9e3bfce0e3b246c3aa85050f01299a5dbe47a2e96e02708776031fb8de86d1d3
MD5 b67c518916ae5e56cb400b93bc29bf1d
BLAKE2b-256 495a17ca431797ceb284ac7e37245506599a01d520b0f7d61d5f73c2d4ca309e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aegis_auth_sdk-0.0.6.tar.gz:

Publisher: pypi-publish.yml on sevck/aegis-auth-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aegis_auth_sdk-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: aegis_auth_sdk-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aegis_auth_sdk-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e2663bd2c23846a34a24bc461cae475640f2e9dc4b32f8b0e44bd9ad4e6907dd
MD5 046c23c6adc5b7b032196c9dfefc7a7c
BLAKE2b-256 5f5dbbb77727725b0f2812380f9f7fab39ed72308d02a5ce3ae85ea9189d11fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for aegis_auth_sdk-0.0.6-py3-none-any.whl:

Publisher: pypi-publish.yml on sevck/aegis-auth-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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