A helper Django app that handles wechat mini program login and user info updating logic
Project description
Weapp Auth
Weapp auth is a Django app that helps to handle wechat mini program login and user info updating logic.
Quick start
-
Install using pip
pip install --upgrade django-weapp-auth -
Add "weapp_auth" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'weapp_auth', ]
-
Include the weapp_auth URLconf in your project urls.py like this::
path('weapp_auth/', include('weapp_auth.urls')),
-
Run
python manage.py migrateto create the models. -
These two APIs are avaliable!
weapp_auth/wechatLogin/andweapp_auth/wechatUpdateUserInfo/ -
Call these two APIs in your wechat mini app!
-
Authenticate your request with
from weapp_auth.authenticator.OpenIdAuthenticator import OpenIdAuthenticator
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
File details
Details for the file django-weapp-auth-1.0.7.tar.gz.
File metadata
- Download URL: django-weapp-auth-1.0.7.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2eeb86c48e7c639f4de77176564412bd9a36a84eac23e092a699e68c675ce2e1
|
|
| MD5 |
3c437c06bc75d285c52ddd94a08d250d
|
|
| BLAKE2b-256 |
d6e4c45dee389a3ce83a4378c8eb7c489043083c50361b3e6b98781275bda5b8
|