Skip to main content

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
-----------
1. Install 'authwrapper' and 'django-phone-login', checking django-phone-login readme for configuration

2. 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'


2. Include the polls URLconf in your project urls.py like this::

url(r'^authwrapper/', include('authwrapper.urls')),

3. Run `python manage.py migrate` to create the authwrapper models.

4. 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).

5. Visit http://127.0.0.1:8000/authwrapper/ to participate in the auth.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codingsoho-auth-1.0.1.tar.gz (39.6 kB view details)

Uploaded Source

File details

Details for the file codingsoho-auth-1.0.1.tar.gz.

File metadata

File hashes

Hashes for codingsoho-auth-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6b863cd240379fc9e6e3d732bd755ed5db14cbb8473bca238f3ae9640a4295b2
MD5 8198b6c118570b40bf65c3aa2334abec
BLAKE2b-256 5525fb425dc1e1e267ee0f1251e8c0e7f07a48cdcd20ac5482a2867da7f7144e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page