Using Google Authentication with a Python/Flask Application
Go through the tutorial on Codementor and set up your credentials, then follow the following steps
- Clone the repository
git clone https://github.com/andela-oowonikoko/Python-Flask-Google-Auth.git
-
Create a virtual environment for the application. For more information, visit here
-
Install the required modules
pip install -r requirements.txt
- Create a .env file in the root directory and add the following credentials:
GOOGLE_CLIENT_ID = 'YOUR GOOGLE CLIENT ID'
GOOGLE_CLIENT_SECRET = 'YOUR GOOGLE CLIENT SECRET'
SECRET_KEY = 'YOUR SECRET KEY'
- Run the application
python run.py