Django all auth includes all account, including django default, OAuth (Google, Discord, Twitch), openId (Steam).
Project description
Django all auth includes all account, including django default, OAuth (Google, Discord, Twitch), openId (Steam).
Detailed documentation is in the “docs” directory.
Quick start
Add “account” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ..., 'dj_all_auth', ]
Include the polls URLconf in your project urls.py like this:
# if you are not using /accounts url then you need to add `LOGIN_URL = '<your-url>'` in your settings.py path('accounts/', include('dj_all_auth.urls')),
Add context processor to settings.py:
'dj_all_auth.context_processors.__config'
Add dj_all_auth settings to settings.py:
DJ_ALL_AUTH = { 'LOGO': 'images/logo.webp', 'CONNECTIONS': { # name of the url that will be used once OAuth is completed 'REDIRECT_URI_NAME': None, 'GOOGLE': { # Set {domain-without-local}/account/google/authenticated to twitch redirect url 'CLIENT_ID': os.getenv('GOOGLE_CLIENT_ID') if os.getenv('GOOGLE_CLIENT_ID') else None, 'CLIENT_SECRET': os.getenv('GOOGLE_CLIENT_SECRET') if os.getenv('GOOGLE_CLIENT_SECRET') else None, 'SCOPE': ['openid', 'email', 'https://www.googleapis.com/auth/drive.file'] }, 'TWITCH': { # Set {domain-without-local}/account/twitch/authenticated to twitch redirect url 'CLIENT_ID': os.getenv('TWITCH_CLIENT_ID') if os.getenv('TWITCH_CLIENT_ID') else None, 'CLIENT_SECRET': os.getenv('TWITCH_CLIENT_SECRET') if os.getenv('TWITCH_CLIENT_SECRET') else None, 'SCOPE': ['user:read:email', 'user:read:broadcast'] }, 'DISCORD': { # Set {domain-without-local}/account/discord/authenticated to discord redirect url 'CLIENT_ID': os.getenv('DISCORD_CLIENT_ID') if os.getenv('DISCORD_CLIENT_ID') else None, 'CLIENT_SECRET': os.getenv('DISCORD_CLIENT_SECRET') if os.getenv('DISCORD_CLIENT_SECRET') else None, 'SCOPE': ['identify', 'email', 'connections', 'guilds', 'guilds.join'] } } }
To create models run:
python manage.py migrate
If you are using multilanguage then to create language file run:
python manage.py makemessages -i venv --all
Visit the /accounts/ URL to access user account.
Notes:
static/notify :: Ref: https://github.com/deviserops/notify
static/justify :: Ref: https://github.com/deviserops/justify
static/images
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dj_all_auth-0.1b5.tar.gz
.
File metadata
- Download URL: dj_all_auth-0.1b5.tar.gz
- Upload date:
- Size: 397.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54827b18560bfa8d90c71fe1e41ff5cf774636338f3de6398008a00d13f6c564 |
|
MD5 | 27ba0eaf81c3c630a9e087c21cb9016c |
|
BLAKE2b-256 | e5c426c524dedace37cf3ba7313d823d25b7b4b5283e0af66b525c5b18bdedaf |
File details
Details for the file dj_all_auth-0.1b5-py3-none-any.whl
.
File metadata
- Download URL: dj_all_auth-0.1b5-py3-none-any.whl
- Upload date:
- Size: 415.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c113b3d19bf6a4e74368388ea672a5684f496c9951c2631a7d9bee1efab9fa |
|
MD5 | 24861853172357f69633dcaddff8a35a |
|
BLAKE2b-256 | b2ccac157ee152ad70c0bed72f3b9031a1f9b34c6513635e1f61003bdae87db9 |