

@return_future
def authorize_redirect(self, oauth_scope, callback_uri=None, ax_attrs=['name', 'email', 'language', 'username'], callback=None):
    'Authenticates and authorizes for the given Google resource.\n\n        Some of the available resources which can be used in the ``oauth_scope``\n        argument are:\n\n        * Gmail Contacts - http://www.google.com/m8/feeds/\n        * Calendar - http://www.google.com/calendar/feeds/\n        * Finance - http://finance.google.com/finance/feeds/\n\n        You can authorize multiple resources by separating the resource\n        URLs with a space.\n\n        .. versionchanged:: 3.1\n           Returns a `.Future` and takes an optional callback.  These are\n           not strictly necessary as this method is synchronous,\n           but they are supplied for consistency with\n           `OAuthMixin.authorize_redirect`.\n        '
    callback_uri = (callback_uri or self.request.uri)
    args = self._openid_args(callback_uri, ax_attrs=ax_attrs, oauth_scope=oauth_scope)
    self.redirect(((self._OPENID_ENDPOINT + '?') + urllib_parse.urlencode(args)))
    callback()

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py GoogleMixin.authorize_redirect/original