It offers providers of Toyo University and INIAD Accounts for django-allauth
Project description
"Django Toyo Auth" offers providers of Toyo University Accounts(@toyo.jp) and INIAD Accounts(@iniad.org) for django-allauth
Installation
Install Package
pip install django-toyo-auth
settings.py
INSTALLED_APPS = [
...
'django.contrib.auth',
'django.contrib.messages',
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'django_toyo_auth', # Offers Custom UserModel
'django_toyo_auth.providers.iniad', # INIAD Account
'django_toyo_auth.providers.toyo', # Toyo Account
...
]
SITE_ID = 1
# Provider specific settings
SOCIALACCOUNT_PROVIDERS = {
'iniad': { # for INIAD Account
'SCOPE': [
'profile',
'email',
],
'AUTH_PARAMS': {
'access_type': 'online',
},
},
'toyo': { # for Toyo Account
'SCOPE': [
'profile',
'email',
],
'AUTH_PARAMS': {
'access_type': 'online',
},
},
}
AUTH_USER_MODEL = 'django_toyo_auth.User' # Use custom user model with student id (Optional)
urls.py
urlpatterns = [
...
path('accounts/', include('allauth.urls')),
...
]
Details
It offers only providers and custom models for django-allauth. Please see django-allauth documents for detail
Requirements
Licenses
MIT
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
django_toyo_auth-0.1.0.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for django_toyo_auth-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9911f848883c4487f5864705e4c7fea8a612457c7b75c6cb28c05755f5677bd |
|
MD5 | 8931a9bd5dd8ec9db02129dda27aa296 |
|
BLAKE2b-256 | 2629ce08030367f9edcef852f50ca4228d6d1a6ed350b6c7db6e4f53ffa00491 |