roy-pstr / simple-auth0-fastapi-react-app

A simple application for authentication, authorization and user management based on Auth0. 🐍 Python ⚑ FastAPI + React.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Auth0 FastAPI React Application

A simple application for user authentication & authorization (JWT based) and user management based on Auth0 service. Backend is in Python with FastAPI, integrated with auth0 client. Frontend is vanilla react application contains simple login, signup form, and google account login.
This repo is for a quick start with Auth0.

Application Features

Client-side

  • Login (username and password)
  • Signup (username and password)
  • Google account login

Client side

Server-side

  • JWT verification
  • Private endpoint example (must have access token to get access)
  • Scoped-private endpoint example (must have access token and permissions to get access)

Server side

Services Setup

Backend

Go to services/backend/README.md

Frontend

Go to services/frontend/README.md

Auth0

Go to services/auth0/README.md

Open Tasks

  • A script for auto create Auth0 environment given Auth0 Management credentials only

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A simple application for authentication, authorization and user management based on Auth0. 🐍 Python ⚑ FastAPI + React.


Languages

Language:Python 58.2%Language:JavaScript 28.4%Language:HTML 5.8%Language:CSS 4.6%Language:Dockerfile 2.5%Language:Shell 0.6%