Curso de FastAPI - Rest API com Python - Aula 07: Bloqueio de Endpoints para Usuários Autenticados

Want to learn more about our Complete Python Course? Click the link below to secure your spot in the next class: https://lp.hashtagtreinamentos.com/es... ----------------------------------------------------------------------- 📁 Files Used in Video: https://dlp.hashtagtreinamentos.com/p... 💻 Recommended video: FastAPI Course Playlist - Rest API with Python (Complete Backend)    • Curso de FastAPI - Rest API com Python (Ba...   ----------------------------------------------------------------------- If you prefer the video Text format: https://www.hashtagtreinamentos.com/c... ----------------------------------------------------------------------- TO HIRE HASHTAG FOR YOUR COMPANY: https://www.hashtagtreinamentos.com/t... ----------------------------------------------------------------------- In the seventh lesson of the FastAPI Course with Python, we will take another essential step in the development of our backend: implementing route protection with authentication via JWT tokens. You'll learn how to turn token verification into a reusable dependency, ensuring that only authenticated users can access certain API routes. We'll also show you how to integrate authentication with the database, validate tokens, handle authorization errors (401), and configure Bearer authentication with the OAuth2 standard—all in a practical and efficient way! In addition, we'll test these protections with the requests library and configure the "Authorize" button in the FastAPI interactive documentation to facilitate your testing. This will make your system more secure and professional! 🔔 Are you enjoying this comprehensive content on APIs with Python? Then subscribe to the channel, activate the bell, and leave a like so you don't miss the next lessons! ----------------------------------------------------------------------- Hashtag Programming ► Subscribe to our channel: http://bit.ly/3c0LJQi ► Turn on notifications (click the bell)! ► Like our video! ----------------------------------------------------------------------- Social Media ► Blog: https://bit.ly/2MRUZs0 ► YouTube: http://bit.ly/3c0LJQi ► Instagram: https://bit.ly/3o6dw42 ► Facebook: http://bit.ly/3qGtaF2 Here in the videos on the Hashtag Programação channel, we teach several Python tips so you can develop in this programming language and create your own projects and automations! ----------------------------------------------------------------------- Class Content 00:00 Introduction to authentication with FastAPI and JWT tokens 01:06 How to turn JWT token verification into a reusable dependency in FastAPI 06:10 Decoding JWT tokens in the backend with Python and FastAPI 08:58 Defining and handling the HTTP 401 error in the FastAPI API 10:20 Extracting user information from the JWT token 12:58 Testing access token validation in the FastAPI API 13:41 Configuring OAuth2 authentication with Bearer tokens in FastAPI 17:56 Understanding the authorization process in the FastAPI API with OAuth2 19:15 Testing protected endpoints using the requests library 22:44 How to resolve common request and authentication errors in FastAPI 26:20 Configuring the Authorize button in the FastAPI documentation 34:13 How to access protected routes directly in the FastAPI documentation 35:34 Detailed explanation of the authentication flow in the API 38:47 Conclusion #python #hashtagprogramming

FastAPI Course - Rest API with Python - Class 08: Database Access Levels and Lazyloaded
▶︎

FastAPI Course - Rest API with Python - Class 08: Database Access Levels and Lazyloaded

Full Archon Guide - Build AI Coding Harnesses That Actually Ship (LIVE)
▶︎

Full Archon Guide - Build AI Coding Harnesses That Actually Ship (LIVE)

Claude AI vs $100 Fiverr FiveM Developer... INSANE!
▶︎

Claude AI vs $100 Fiverr FiveM Developer... INSANE!

FastAPI Course - Rest API with Python - Class 09: Add Item to Order and Relationship to Models
▶︎

FastAPI Course - Rest API with Python - Class 09: Add Item to Order and Relationship to Models

O que é JWT? Aprenda tudo sobre JSON Web Token
▶︎

O que é JWT? Aprenda tudo sobre JSON Web Token

Selenium - Automate Any Internet Task with Python
▶︎

Selenium - Automate Any Internet Task with Python

FastAPI Course - Rest API with Python - Class 03: Database, Models and Migrations
▶︎

FastAPI Course - Rest API with Python - Class 03: Database, Models and Migrations

The Ultimate FastAPI + React Full Stack Project (Deploy This and You’re Set)
▶︎

The Ultimate FastAPI + React Full Stack Project (Deploy This and You’re Set)

How to Create Modern WebApps Using Only Python - FastHTML
▶︎

How to Create Modern WebApps Using Only Python - FastHTML

Aprenda de vez o que é uma API com esse exemplo simples em Python
▶︎

Aprenda de vez o que é uma API com esse exemplo simples em Python

FastAPI Course - Rest API with Python - Class 04: Creating a user account, Schemas and Encryption
▶︎

FastAPI Course - Rest API with Python - Class 04: Creating a user account, Schemas and Encryption

How to Design APIs Like a Senior Engineer (REST, GraphQL, Auth, Security)
▶︎

How to Design APIs Like a Senior Engineer (REST, GraphQL, Auth, Security)

APIs for Beginners - How to use an API (Full Course / Tutorial)
▶︎

APIs for Beginners - How to use an API (Full Course / Tutorial)

Programmiert dein Unterbewusstsein im Schlaf neu - Das stärkste Audio für deinen Quantensprung
▶︎

Programmiert dein Unterbewusstsein im Schlaf neu - Das stärkste Audio für deinen Quantensprung

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra
▶︎

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

Python Freelance - $1,000 Project - Playlist Report Automation
▶︎

Python Freelance - $1,000 Project - Playlist Report Automation

FastAPI Course - Rest API with Python - Class 06: Authentication, OAuth2 and JWT Tokens
▶︎

FastAPI Course - Rest API with Python - Class 06: Authentication, OAuth2 and JWT Tokens

Hands-On Power BI Tutorial 📊Beginner to Pro [Full Course] ⚡
▶︎

Hands-On Power BI Tutorial 📊Beginner to Pro [Full Course] ⚡

Automate reports with Python in 12 lines
▶︎

Automate reports with Python in 12 lines

FastAPI Crash Course - Modern Python API Development
▶︎

FastAPI Crash Course - Modern Python API Development