Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ or current ones extended):
* Steam_ OpenId
* Stocktwits_ OAuth2
* Stripe_ OAuth2
* Taobao_ OAuth2 http://open.taobao.com/doc/detail.htm?id=118
* ThisIsMyJam_ OAuth1 https://www.thisismyjam.com/developers/authentication
* Trello_ OAuth1 https://trello.com/docs/gettingstarted/oauth.html
* Tripit_ OAuth1
Expand Down Expand Up @@ -236,6 +237,7 @@ check `django-social-auth LICENSE`_ for details:
.. _Soundcloud: https://soundcloud.com
.. _Stocktwits: https://stocktwits.com
.. _Stripe: https://stripe.com
.. _Taobao: http://open.taobao.com/doc/detail.htm?id=118
.. _Tripit: https://www.tripit.com
.. _Twilio: https://www.twilio.com
.. _Twitter: http://twitter.com
Expand Down
16 changes: 16 additions & 0 deletions docs/backends/taobao.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Taobao OAuth
===========

Taobao OAuth 2.0 workflow.

- Register a new application at Open Taobao_.

- Fill ``Consumer Key`` and ``Consumer Secret`` values in the settings::

SOCIAL_AUTH_TAOBAO_KEY = ''
SOCIAL_AUTH_TAOBAO_SECRET = ''

By default ``token``is stored in
extra_data field.

.. _Taobao: http://open.taobao.com
2 changes: 2 additions & 0 deletions social/backends/taobao.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

class TAOBAOAuth(BaseOAuth2):
"""Taobao OAuth authentication mechanism"""

name = 'taobao'
ID_KEY = 'taobao_user_id'
ACCESS_TOKEN_METHOD="POST"
AUTHORIZATION_URL = 'https://oauth.taobao.com/authorize'
ACCESS_TOKEN_URL = 'https://oauth.taobao.com/token'

Expand Down