-
Click the "Create Project" button
-
Name the project and click the "Create" button
-
Click the menu button, Select "APIs & Services", then "OAuth Consent Screen"
-
Select "External" and click the "Create" button
-
Fill out "Application Name", scroll to the bottom and click the "Save" button. No other info should be filled out in the consent screen at this time.
-
Click "Credentials" in the sidebar and then click the "Create Credentials" button
-
Select "OAuth Client ID"
-
Select Web Application and fill out the "Authorized JavaScript Origins" and "Authorized redirect URI" and click the "Create" button.
Authorized JavaScript Origins:
http://localhost:5000Authorized redirect URI
http://localhost:5000/auth/google/callbackNote! Google has made a number of changes to the OAuth credential's restrictions, and no longer allows wildcards in the redirect URI field. If you follow along with the upcoming video lecture you will get this error: Invalid Redirect: cannot contain a wildcard (*)
Since the main goal of using
http://localhost:5000/*was to show the redirect error a few lectures later, we entered the correct redirect as shown above since this is what it will be changed to anyway. -
Copy your Client ID and Client Secret in a safe place which will be used in dev config later.