From: Stephen McMillen Date: Sun, 1 Sep 2013 15:48:46 +0000 (-0400) Subject: Rename the object param in GoogleOAuth2Mixin from overwrites to extra_params. X-Git-Tag: v3.2.0b1~54^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd3ea2098d386edcbd416b0dcb1b600268f9d6e7;p=thirdparty%2Ftornado.git Rename the object param in GoogleOAuth2Mixin from overwrites to extra_params. --- diff --git a/tornado/auth.py b/tornado/auth.py index f456124d7..8f28de22f 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -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),