[Python-modules-commits] [python-social-auth] 254/322: Swtich Twitter API to POST (as it's documented)

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:13:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.10
in repository python-social-auth.

commit 6eed1dbab510eb96bc95af4de38fb33f0b45f07f
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Wed Apr 15 11:54:15 2015 -0300

    Swtich Twitter API to POST (as it's documented)
---
 social/backends/twitter.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/social/backends/twitter.py b/social/backends/twitter.py
index ed080ea..c41f15a 100644
--- a/social/backends/twitter.py
+++ b/social/backends/twitter.py
@@ -10,6 +10,8 @@ class TwitterOAuth(BaseOAuth1):
     """Twitter OAuth authentication backend"""
     name = 'twitter'
     EXTRA_DATA = [('id', 'id')]
+    REQUEST_TOKEN_METHOD = 'POST'
+    ACCESS_TOKEN_METHOD = 'POST'
     AUTHORIZATION_URL = 'https://api.twitter.com/oauth/authenticate'
     REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token'
     ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list