Skip to content

Commit 00e8156

Browse files
Update google.rst (#454)
* 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 * non-functional changes to kick off new pipeline Co-authored-by: jtroussard <[email protected]>
1 parent 75a316b commit 00e8156

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/examples/google.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
Google OAuth 2 Tutorial
22
==========================
33

4-
Setup a new web project in the `Google Cloud Console`_
5-
When you have obtained a ``client_id``, ``client_secret`` and registered
4+
Setup a new web project in the `Google Cloud Console`, (application type: web application)_
5+
When you have obtained a ``client_id``, ``client_secret``, and registered
66
a callback URL then you can try out the command line interactive example below.
77

88
.. _`Google Cloud Console`: https://cloud.google.com/console/project
99

1010
.. code-block:: pycon
1111
1212
>>> # Credentials you get from registering a new application
13-
>>> client_id = '<the id you get from google>.apps.googleusercontent.com'
13+
>>> client_id = '<the id you get from google>'
1414
>>> client_secret = '<the secret you get from google>'
1515
>>> redirect_uri = 'https://your.registered/callback'
1616
1717
>>> # OAuth endpoints given in the Google API documentation
1818
>>> authorization_base_url = "https://accounts.google.com/o/oauth2/v2/auth"
1919
>>> token_url = "https://www.googleapis.com/oauth2/v4/token"
2020
>>> scope = [
21+
... "openid",
2122
... "https://www.googleapis.com/auth/userinfo.email",
2223
... "https://www.googleapis.com/auth/userinfo.profile"
2324
... ]

0 commit comments

Comments
 (0)