Skip to main content

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

image

Env Props

# before `python manage.py migrate` 
export SOCIAL_AUTH_DB_INIT=true
# it may trigger `migrate` twice, but it's acceptable...
python manage.py migrate

unset SOCIAL_AUTH_DB_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

saleor-social-auth-0.3.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saleor_social_auth-0.3.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file saleor-social-auth-0.3.0.tar.gz.

File metadata

  • Download URL: saleor-social-auth-0.3.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for saleor-social-auth-0.3.0.tar.gz
Algorithm Hash digest
SHA256 174c2ef0548cc63780aef732e6d3d97fa74d2a562ba93213d4040c5eff1d687a
MD5 82fc767019e51ef58e7069cd616c31c5
BLAKE2b-256 2536cb58ae76d63442ad746df683418b581907276b8369ebc15cbcd69e4dad9b

See more details on using hashes here.

File details

Details for the file saleor_social_auth-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: saleor_social_auth-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for saleor_social_auth-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08fae36b4167808858f5a3e4a33daa0d5b5b34f4630da0d80222bbbe052e460a
MD5 2140d368a21aef86ebe15b1bba8816ac
BLAKE2b-256 86d5eed218e660221e4a0d227bee46b0ad57ba9dba7f65c8825a069cadabc502

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