- A minimal project primarily aimed at understanding the implementation of Oauth. I have built it with python, using Flask as my framework of choice. A comprehensive list of all required modules can be found in the
requirements.txtfile.
- The are two main ways to setup and run the application, which I have described below:
- Local setup on your machine with python and pip
- Setup with docker
- Create a virtual environment. A common and well thought out name is
.venv/venve.t.c:
$ python -m venv .venv- Activate the virtual environment:
$ source .venv/bin/activateNote
This method only works for Unix based operating systems, i.e Linux and MacOs. If you are using Windows, try .venv\Scripts\activate
- Next install all dependencies in the
requirements.txtfile:
(.venv)$ pip install -r requirements.txt-
Move the
.env-examplefile and copy the environment variables. These will help you setup your own.envvaribales that ae required for setting up and running the application. -
Finally, start the python server and navigate to
https://127.0.0.1:5000/where you'll find the server running:
(.venv)$ python app.py- Pull the docker image
$ docker pull mbvgua/oauth-primer:v1- Run the container:
$ docker run -p 5000:5000 mbvgua/oauth-primer:v1- Navigate to
https:127.0.0.1:5000/where the server will be running
- Add mechansim to check validity of email and password in
authmodule - Add the admin dashboard
- Change db from sqlite3 to MySql
- Add mechanism to send emails to user once account has been created