Skip to content

Commit

Permalink
docs(wechat): Default scope
Browse files Browse the repository at this point in the history
* WeChat default SCOPE changed from snsapi_login to snsapi_userinfo

* add description in doc, weixin default scope is snsapi_login, bug user can config it
  • Loading branch information
li5tun authored and pennersr committed Jan 16, 2018
1 parent e8e1d80 commit 60babf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/providers.rst
Expand Up @@ -1391,13 +1391,15 @@ will support open platform by default, which value is
``https://open.weixin.qq.com/connect/qrconnect``.

You can optionally specify additional scope to use. If no ``SCOPE`` value
is set, will use ``snsapi_login`` by default.
is set, will use ``snsapi_login`` by default(for Open Platform Account, need
registration). Other ``SCOPE`` options are: snsapi_base, snsapi_userinfo.

.. code-block:: python
SOCIALACCOUNT_PROVIDERS = {
'weixin': {
'AUTHORIZE_URL': 'https://open.weixin.qq.com/connect/oauth2/authorize', # for media platform
'SCOPE': ['snsapi_base'],
}
}
Expand Down

0 comments on commit 60babf4

Please sign in to comment.