File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11Google 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
66a 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 ... ]
You can’t perform that action at this time.
0 commit comments