مواد پر جائیں
AtheronDEVELOPERS
← Python SDK

django-allauth (Python)

Sign in with Atheron in django-allauth.

مثالوں میں اپنی ٹیسٹ کلائنٹ آئی ڈی دیکھنے کے لیے سائن اِن کریں۔

Coming soon. aton-network is not published on PyPI yet, so the install line on this page does not work until it is. Until then, everything works over plain HTTP: pick cURL in any code block, or start from Endpoints.

aton_network.contrib.allauth is Atheron as a django-allauth provider, with PKCE on. Install with pip install aton-network[allauth].

Settings

Register https://your.app/accounts/atheron/login/callback/ as the redirect address. The account's email comes from Atheron only when it is verified; the person's ID (sub) is the account's UID.

python
INSTALLED_APPS = [..., "allauth", "allauth.account", "allauth.socialaccount", "aton_network.contrib.allauth"]
SOCIALACCOUNT_PROVIDERS = {
    "atheron": {
        "APPS": [{"client_id": env("ATHERON_CLIENT_ID"), "secret": env("ATHERON_CLIENT_SECRET")}],
        "SCOPE": ["openid", "profile", "email"],
    },
}

⁨Atlas⁩ سے پوچھیں

AI اسسٹنٹ

Atheron کے ساتھ سائن ان، API یا پورٹل کے بارے میں کچھ بھی پوچھیں۔ جواب ہماری دستاویزات سے آتا ہے، استعمال شدہ صفحات کے لنک کے ساتھ۔