It offers providers of Toyo University and INIAD Accounts for django-allauth
Project description
Django Toyo Auth
"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',
'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',
},
},
}
urls.py
urlpatterns = [
...
path('accounts/', include('allauth.urls')),
...
]
Classes
django_toyo_auth.models.AbstractUser
User class with student_id, entry_year, is_student, is_toyo_member, is_iniad_member
Attributes
- student_id
- entry_year
- is_student
- is_toyo_member
- is_iniad_member
- grade
django_toyo_auth.models.UUIDAbstractUser
Inherits all attributes and methods from AbstractUser, but also primary_key is UUID
Attributes
- uuid
django_toyo_auth.admin.ToyoUserAdmin
ModelAdmin class for AbstractUser. It offers user-friendly admin pages.
django_toyo_auth.admin.UUIDToyoUserAdmin
ModelAdmin class for UUIDAbstractUser. It offers user-friendly admin pages.
Details
It offers only providers and custom models for django-allauth. Please see django-allauth documents for detail
Requirements
License
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
Built Distribution
File details
Details for the file django_toyo_auth-0.9.0.tar.gz
.
File metadata
- Download URL: django_toyo_auth-0.9.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7893bc927aae5f8fe36147d74e654c8ffd91a1bbc89b9d31f05f9a0db421963a |
|
MD5 | 45c687ac9dcb9b5a7b7269a5efbc0b81 |
|
BLAKE2b-256 | 4c9a984140dba565c716b29d912bcea08fb04fbd808b5577777d43fa8c83a555 |
File details
Details for the file django_toyo_auth-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: django_toyo_auth-0.9.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a98f32be89796c430d094d04331046cea0e5196994849bad830bf3aa8c69c3b |
|
MD5 | 7b9d72adca3e3bae670cf52e67785dbd |
|
BLAKE2b-256 | fb209bb88094889a366038b56ef9d07f1dc391e26717a7e404fa4491e034268e |