Skip to content

A helper Django app that handles wechat mini program login and user info updating logic

License

Notifications You must be signed in to change notification settings

Meowzz95/django_weapp_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Weapp Auth

Weapp auth is a Django app that helps to handle wechat mini program login and user info updating logic.

Quick start

  1. Install using pip pip install --upgrade django-weapp-auth

  2. Add "weapp_auth" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [ ... 'weapp_auth', ]

  3. Include the weapp_auth URLconf in your project urls.py like this::

    path('weapp_auth/', include('weapp_auth.urls')),

  4. Run python manage.py migrate to create the models.

  5. These two APIs are avaliable! weapp_auth/wechatLogin/ and weapp_auth/wechatUpdateUserInfo/

  6. Call these two APIs in your wechat mini app!

  7. Authenticate your request with from weapp_auth.authenticator.OpenIdAuthenticator import OpenIdAuthenticator

About

A helper Django app that handles wechat mini program login and user info updating logic

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published