Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtemporal/minimal-fastapi-webapp-auth0
Minimal web app with fastapi and auth0
https://github.com/jtemporal/minimal-fastapi-webapp-auth0
auth0 fastapi
Last synced: 9 days ago
JSON representation
Minimal web app with fastapi and auth0
- Host: GitHub
- URL: https://github.com/jtemporal/minimal-fastapi-webapp-auth0
- Owner: jtemporal
- Created: 2023-12-14T13:15:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-25T21:16:51.000Z (10 months ago)
- Last Synced: 2024-12-27T13:17:34.740Z (about 1 month ago)
- Topics: auth0, fastapi
- Language: Python
- Homepage: https://jtemporal.com/tips-on-migrating-from-flask-to-fastapi-and-vice-versa/
- Size: 15.6 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastAPI Demo Web App with Auth0
This application is a sample on how to integrate Auth0 for authentication in a FastAPI web application using APIRouter and module separation.
## How to run the server
1. Clone this repository
```
git clone https://github.com/jtemporal/minimal-fastapi-webapp-auth0.git && cd minimal-fastapi-webapp-auth0
```
2. Create a `.config` file from `.config.example` and populate the values from your Auth0 Application. Here is
```
cp .config.example .config
```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
```
uvicorn main:app --reload
```
5. Visit [`http://localhost:8000`](http://localhost:8000) to access the web application.----
Rewatch this live stream on FastAPI authentication with Auth0 and Jinja templates!
- On [twitch](https://www.twitch.tv/videos/1990681238)
- On [YouTube](https://www.youtube.com/watch?v=BMLaMdob3Cs)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