]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Rename the object param in GoogleOAuth2Mixin from overwrites to extra_params.
authorStephen McMillen <sclm3000@gmail.com>
Sun, 1 Sep 2013 15:48:46 +0000 (11:48 -0400)
committerStephen McMillen <sclm3000@gmail.com>
Sun, 1 Sep 2013 15:48:46 +0000 (11:48 -0400)
tornado/auth.py

index f456124d77e983650b349217d29f19d6782d929c..8f28de22ff50aff6fe79bfade630797f1ed84a24 100644 (file)
@@ -952,7 +952,7 @@ class GoogleOAuth2Mixin(OAuth2Mixin):
     _OAUTH_NO_CALLBACKS = False
 
     def authorize_redirect(self, redirect_uri=None, client_id=None, 
-                          scope=['openid', 'email'], response_type="code", overwrites={}):
+                          scope=['openid', 'email'], response_type="code", extra_params={}):
         """Redirect the user to Google to authenticate them.
 
         The API itself defaults some of these values that cna be overwritten by the overwrites object.
@@ -960,12 +960,10 @@ class GoogleOAuth2Mixin(OAuth2Mixin):
         approval_prompt = auto
         access_type = online
         """
-        extra_params = {
+        extra_params.update({
             "scope": ' '.join(scope),
             "response_type": response_type,
-        }
-
-        extra_params.update(overwrites)
+        })
 
         OAuth2Mixin.authorize_redirect(self,
             self.request.protocol + '://' + self.request.host + (redirect_uri or self.request.uri),