Social auth plugin (wx, alipay & etc.) for Saleor
Project description
social_auth
Social auth plugin (wx, alipay & etc.) for Saleor
More details will come as the development goes on...
Plugin Configuration Demo
social_strategy: social_auth.strategy.SaleorPluginStrategy
social_storage: social_django.models.DjangoStorage
default_backend: google-openidconnect
social_auth_config: # yaml strings, see below
# social_auth_config content demo
# https://www.cloudbees.com/blog/yaml-tutorial-everything-you-need-get-started
SOCIAL_AUTH_AUTHENTICATION_BACKENDS:
- social_core.backends.google_openidconnect.GoogleOpenIdConnect
- social_auth.backends.weapp.WeappAuth
SOCIAL_AUTH_GOOGLE_OPENIDCONNECT_KEY: xxxyyyzzz.apps.googleusercontent.com
SOCIAL_AUTH_GOOGLE_OPENIDCONNECT_SECRET: YOUR_GOIDC_SECRET
SOCIAL_AUTH_WEIXIN_WEAPP_KEY: wxaaabbbcccdddeee
SOCIAL_AUTH_WEIXIN_WEAPP_SECRET: YOUR_WEAPP_SECRET
Env Props
# before `python manage.py migrate`
export SOCIAL_AUTH_INIT=true
# it may trigger `migrate` twice, but it's acceptable...
python manage.py migrate
unset SOCIAL_AUTH_INIT
# you can run any django command without the extra(time-consuming) db init stuff of this plugin from now on
python manage.py runserver
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
Built Distribution
Close
Hashes for saleor_social_auth-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e526e182c691a9acd8bd6e090eade4660b490d0bab68ee8c697f16290b1bf4 |
|
MD5 | 8bb420c1472f3c056bb036a621110e64 |
|
BLAKE2b-256 | 3a49ed0ab1e8bbaffe0a667b71bc6cc2d774e643d8edadc54923065af1130426 |