Commit 43b78568 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Auth handlers should use HTTPS by default.

parent b752f6bd
......@@ -27,7 +27,7 @@ class OAuthHandler(AuthHandler):
OAUTH_ROOT = '/oauth/'
def __init__(self, consumer_key, consumer_secret, callback=None, secure=False):
def __init__(self, consumer_key, consumer_secret, callback=None, secure=True):
if type(consumer_key) == unicode:
consumer_key = bytes(consumer_key)
......@@ -42,7 +42,7 @@ class OAuthHandler(AuthHandler):
self.username = None = secure
def _get_oauth_url(self, endpoint, secure=False):
def _get_oauth_url(self, endpoint, secure=True):
if or secure:
prefix = 'https://'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment