]> jfr.im git - z_archive/twitter.git/commitdiff
oauth dance should use https.
authorPaul O'Leary McCann <redacted>
Mon, 24 Feb 2014 01:50:17 +0000 (10:50 +0900)
committerPaul O'Leary McCann <redacted>
Mon, 24 Feb 2014 01:50:17 +0000 (10:50 +0900)
HTTP URL generated by OAuth dance just gives a blank page, but changing it to HTTPS fixes it.

twitter/oauth_dance.py

index 17dbae6f44fce9981a6c7f768d53ceff8a23dc29..d3f0ea8f6548635a5c93d6c832f160bb0d5f5cf3 100644 (file)
@@ -1,4 +1,3 @@
-
 from __future__ import print_function
 
 import webbrowser
@@ -38,7 +37,7 @@ In the web browser window that opens please choose to Allow
 access. Copy the PIN number that appears on the next page and paste or
 type it here:
 """)
-    oauth_url = ('http://api.twitter.com/oauth/authorize?oauth_token=' +
+    oauth_url = ('https://api.twitter.com/oauth/authorize?oauth_token=' +
                  oauth_token)
     print("Opening: %s\n" % oauth_url)