Metadata-Version: 2.1
Name: saleor-social-auth
Version: 0.4.0
Summary: Social auth plugin (wx, alipay & etc.) for Saleor
Home-page: https://github.com/ace-han/social_auth
Author: Ace Han
Author-email: ace.jl.han@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Provides-Extra: openidconnect
Provides-Extra: saml
Provides-Extra: azuread
Provides-Extra: all
License-File: LICENSE

# social_auth
Social auth plugin (wx, alipay &amp; etc.) for Saleor
> More details will come as the development goes on...

## Plugin Configuration Demo

```yaml
social_strategy: social_auth.strategy.SaleorPluginStrategy

social_storage: social_django.models.DjangoStorage

default_backend: google-openidconnect

social_auth_config: # yaml strings, see below
```

```yaml
# 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](https://user-images.githubusercontent.com/1177332/150488501-89138aad-191d-43ef-8435-69729736b2ce.png)

## Env Props

```shell
# 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
```

