import time
import urllib.parse
import uuid
+import warnings
from tornado import httpclient
from tornado import escape
The ``callback`` argument and returned awaitable were removed;
this is now an ordinary synchronous function.
+
+ .. deprecated:: 6.4
+ The ``client_secret`` argument (which has never had any effect)
+ is deprecated and will be removed in Tornado 7.0.
"""
+ if client_secret is not None:
+ warnings.warn("client_secret argument is deprecated", DeprecationWarning)
handler = cast(RequestHandler, self)
args = {"response_type": response_type}
if redirect_uri is not None:
self.authorize_redirect(
redirect_uri=self._OAUTH_REDIRECT_URI,
client_id=self.settings["google_oauth"]["key"],
- client_secret=self.settings["google_oauth"]["secret"],
scope=["profile", "email"],
response_type="code",
extra_params={"prompt": "select_account"},