Fast API JWT Authentication with the FastAPI-JWT-Auth Extension
Hey guys, In this video we see how to implement JWT Authentication with FastAPI-JWT-Auth extension. FastAPI extension that supports JWT Authentication (safe, simple to use, and lightweight). If you’re acquainted with flask-jwt-extended, this extension is for you.
In this video, I walk through how we implement the following.
Creating Access tokens and refresh tokens
Creating Freshness Tokens
Protecting routes and so on.
Timestamps
0:00 Introduction
3:00 Creating Routes
5:06 Creating the model with Pydantic
6:07 Optional configurations
7:54 Creating users in a list
10:49 Get all users
14:43 Configuring FastAPI-JWT-Auth extension
19:10 Creating access tokens
19:52 Creating a login model with Pydantic
27:49 Raising Http Exceptions
29:17 Protecting JWT required routes
33:07 Getting User identity
33:43 Accessing protected routes
35:59 Creating refresh tokens
38:26 Using Refresh tokens to create new tokens
40:20 Protect a route for only
1 view
4324
1381
4 years ago 00:58:20 18
Python FAST API Tutorial
2 years ago 00:14:29 2
Fast API Tutorial, Part 2: Path Parameters
2 years ago 00:25:52 1
Fast API Tutorial, Part 26: Security
2 years ago 00:15:13 1
Fast API Tutorial, Part 4: Request Body
2 years ago 00:42:54 1
Fast API Tutorial, Part 29: SQL Relational Databases
2 years ago 00:25:29 1
Fast API Tutorial, Part 19: Handling Errors
3 years ago 01:48:33 23
Fast API Machine Learning Project Tutorial + Free Deployment | TensorFlow Lite | Heroku
2 years ago 00:14:10 1
Fast API Tutorial, Part 3: Query Parameters
2 years ago 00:13:00 21
Fast API Tutorial, Part 1: Introduction
2 years ago 00:12:49 3
Fast API Tutorial, Part 7: Body - Multiple Parameters
1 year ago 00:05:17 15
Как задеплоить ML модель? - через Fast API и Docker
2 years ago 00:08:40 1
Fast API Tutorial, Part 16: Form Fields
2 years ago 00:19:04 1
Fast API Tutorial, Part 14: Extra Models
2 years ago 00:05:54 1
Fast API Tutorial, Part 8: Body - Field
2 years ago 00:33:11 1
Fast API Tutorial, Part 27: Security with JWT
2 years ago 00:13:24 2
Fast API Tutorial, Part 23: Classes as Dependencies
2 years ago 00:11:15 2
Fast API Tutorial, Part 28: Middleware and CORS
2 years ago 00:20:22 1
Fast API Tutorial, Part 13: Response Model
2 years ago 00:09:45 45
Fast API Tutorial, Part 11: Extra Data Types
2 years ago 00:19:16 1
Fast API Tutorial, Part 5: Query Parameters and String Validation
2 years ago 00:19:34 1
Fast API Tutorial, Part 9: Body - Nested Models
2 years ago 00:10:55 1
Fast API Tutorial, Part 6: Path Parameters and Numeric Validation
2 years ago 00:06:57 1
Fast API Tutorial, Part 24: Sub-Dependencies
2 years ago 00:16:10 4
Fast API Tutorial, Part 20: Path Operation Configuration