this project is wrapper for auth
Project description
codingsoho-auth
codingsoho-authwrapper project is auth wrapper for authentication
Detailed documentation is in the "docs" directory.
Quick start
-
Install 'authwrapper' and 'django-phone-login', checking django-phone-login readme for configuration
-
Add "authwrapper" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'authwrapper',
'phone_login',
]
3 Add configurations
AUTH_USER_MODEL = 'authwrapper.MyUser'
ACCOUNT_ALLOW_MIX_TYPE_LOGIN = True
UUSLUGIFY = True
AUTHENTICATION_BACKENDS = (
'authwrapper.backends.auth.MyBackend',
'authwrapper.backends.auth.WechatBackend', # if support wechat
'django.contrib.auth.backends.ModelBackend',
)
# if support wechat
APP_SECRET =
APP_ID =
ACCOUNT_REGISTER_TYPE = 'phone' # or 'email'
- Include the polls URLconf in your project urls.py like this::
url(r'^authwrapper/', include('authwrapper.urls')),
-
Run
python manage.py migrate
to create the authwrapper models. -
Start the development server and visit http://127.0.0.1:8000/admin/ to create a models if needed (you'll need the Admin app enabled).
-
Visit http://127.0.0.1:8000/authwrapper/ to participate in the auth.
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
File details
Details for the file codingsoho-auth-1.0.2.tar.gz
.
File metadata
- Download URL: codingsoho-auth-1.0.2.tar.gz
- Upload date:
- Size: 70.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b566889750f34adb96138bab07b66ed2b38c553147bb1ea3a90cdb9f51d05c2 |
|
MD5 | 569bdee6a697fb8d0cf20b06e052d5e7 |
|
BLAKE2b-256 | 0005f8f48063cce63699734578b99ec4daba1ae6b4367071924d181d68af691f |