From 429013194780b0f3d5cff2ef1ca5d84fd5e793f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=81=A5=E8=BE=89?= <40563566+mrwangjianhui@users.noreply.github.com> Date: Mon, 30 Aug 2021 23:44:09 +0800 Subject: [PATCH 1/2] Update google.rst https://developers.google.com/identity/protocols/oauth2/openid-connect?hl=en#scope-param https://developers.google.com/identity/protocols/oauth2/scopes#oauth2 --- docs/examples/google.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/examples/google.rst b/docs/examples/google.rst index 4be8328d..a73f0ecb 100644 --- a/docs/examples/google.rst +++ b/docs/examples/google.rst @@ -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" ... ] From e92087fdd97948e024672c71257c3d5dfd183198 Mon Sep 17 00:00:00 2001 From: jtroussard Date: Sat, 1 Jan 2022 18:10:47 -0500 Subject: [PATCH 2/2] non-functional changes to kick off new pipeline --- docs/examples/google.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/google.rst b/docs/examples/google.rst index a73f0ecb..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'