diff --git a/docs/examples/google.rst b/docs/examples/google.rst index 4be8328d..df342184 100644 --- a/docs/examples/google.rst +++ b/docs/examples/google.rst @@ -1,8 +1,8 @@ Google OAuth 2 Tutorial ========================== -Setup a new web project in the `Google Cloud Console`_ -When you have obtained a ``client_id``, ``client_secret`` and registered +Setup a new web project in the `Google Cloud Console`, (application type: web application)_ +When you have obtained a ``client_id``, ``client_secret``, and registered a callback URL then you can try out the command line interactive example below. .. _`Google Cloud Console`: https://cloud.google.com/console/project @@ -10,7 +10,7 @@ a callback URL then you can try out the command line interactive example below. .. code-block:: pycon >>> # Credentials you get from registering a new application - >>> client_id = '.apps.googleusercontent.com' + >>> client_id = '' >>> client_secret = '' >>> redirect_uri = 'https://your.registered/callback' @@ -18,6 +18,7 @@ a callback URL then you can try out the command line interactive example below. >>> authorization_base_url = "https://accounts.google.com/o/oauth2/v2/auth" >>> token_url = "https://www.googleapis.com/oauth2/v4/token" >>> scope = [ + ... "openid", ... "https://www.googleapis.com/auth/userinfo.email", ... "https://www.googleapis.com/auth/userinfo.profile" ... ]