JWT Authentication mit FastAPI – Role-Based Access Control & SQLite DB (incl. Bestätigungsemail)



JWT Authentication mit FastAPI – Role-Based Access Control & SQLite DB (incl. Bestätigungsemail)

JWT Authentication mit FastAPI - Role-Based Access Control & SQLite DB (incl. Bestätigungsemail)

In diesem Video zeige ich euch wie man mit FastAPI eine rollenbasierte Zugriffskontrolle auf verschiedene API Endpunkte umsetzt. Wir werden Admin und User Accounts generieren. Es wird uns eine Bestätigungsmail geschickt bevor wir Daten von Endpunkten abfragen können. Danach müssen und je nach Rolle erhalten wir Zugriff auf Endpunkte oder oder es wird uns dieser verwehrt.

PREREQUISITES:
FastAPI Crashkurs: https://youtu.be/KXCvIV3yr7c
REST-API: https://youtu.be/xpeQz7Hsfz0

Repository: https://github.com/Data-Mastery/FastAPI-Auth

Timestamps:
0:00 Projektübersicht
3:00 Projektaufbau
4:49 SQLite aufsetzen
11:05 Schemas und Modells anlegen
17:39 POST /register Logik
30:30 GET /users Logik
32:40 Password Hashing
35:28 Login mit JWT
52:33 Secured GET Users Endpunkt
1:02:30 Admin only Endpunkt
1:06:27 Versand Bestätigungsemail

Comments are closed.