This is an example flask application that demonstrates implementing Google authentication using google_auth_oauthlib.
This app doesn't do much on it's own, but it can be a useful resource to learn how Google authentication works.
In order to run the application, you'll first need to generate a client_secret.json
file from the Google Cloud Console. Place this file alongside files from this repository and then run:
python3 install -r requirements.txt
OAUTHLIB_INSECURE_TRANSPORT=1 python3 -m flask --app=main.py run --port=80
If this command completes successfully, you should have a web application running at http://localhost that allows logging in via Google.
In order to generate client_secret.json
, you should:
- Login to Google Cloud Console
- Create a new project
- Create new OAuth Client ID in the Credentials area
- Download
client_secret.json