https://github.com/jtemporal/minimal-flask-webapp-auth0
https://github.com/jtemporal/minimal-flask-webapp-auth0
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jtemporal/minimal-flask-webapp-auth0
- Owner: jtemporal
- Created: 2023-12-14T18:27:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-14T18:56:14.000Z (over 2 years ago)
- Last Synced: 2025-01-12T18:35:27.388Z (over 1 year ago)
- Language: Python
- Homepage: https://jtemporal.com/tips-on-migrating-from-flask-to-fastapi-and-vice-versa/
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Demo Web App with Auth0
This application is a sample on how to integrate Auth0 for authentication in a Flask web application using APIRouter and module separation.
## How to run the server
1. Clone this repository
```
git clone https://github.com/jtemporal/minimal-flask-webapp-auth0.git && cd minimal-flask-webapp-auth0
```
2. Create a `.config` file from `.config.example` and populate the values from your Auth0 Application.
```
cp .config.example .config
```
Tip: you can use `openssl rand -hex 32` for the secret key.
3. Create a virtual environment and install dependencies
```
# Create a venv
python3 -m venv .env
# Activate
source .env/bin/activate
# Install dependencies
pip install -r requirements.txt
```
4. Start the server
```
flask --app app run --port 4040
```
5. Visit [`http://localhost:4040/`](http://localhost:4040/) to access the starter web application.
----
Where to find us:
* Jess' LinkedIn: http://linkedin.com/in/jessicatemporal/
* Juan's LinkedIn: https://www.linkedin.com/in/bajcmartinez/
Sign up for Auth0's developer newsletter here: https://a0.to/nl-signup/python