

@return_future
def authenticate_redirect(self, callback_uri=None, ax_attrs=['name', 'email', 'language', 'username'], callback=None):
    "Redirects to the authentication URL for this service.\n\n        After authentication, the service will redirect back to the given\n        callback URI with additional parameters including ``openid.mode``.\n\n        We request the given attributes for the authenticated user by\n        default (name, email, language, and username). If you don't need\n        all those attributes for your app, you can request fewer with\n        the ax_attrs keyword argument.\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)
    self.redirect(((self._OPENID_ENDPOINT + '?') + urllib_parse.urlencode(args)))
    callback()

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py OpenIdMixin.authenticate_redirect/original