Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Validate JWTs issued by Auth0 in FastAPI

Автор: microapis

Загружено: 2024-07-25

Просмотров: 3379

Описание:

Validate JSON Web Tokens (JWTs) issued by Auth0 in FastAPI

To follow along with this tutorial, you need an account on https://auth0.com. Also make sure you follow all the steps in the previous videos:

"Setting up Auth0 for API Authentication and Authorization" (   • Setting up Auth0 for API authentication an...  ) to set up your Auth0 account

"Login and issue API access tokens with Auth0 and FastAPI" (   • Login and issue API access tokens with Aut...  ) to implement the login and authorization flow. In this video, we issue the access tokens that you'll learn to validate in this video.

The code repository for this tutorial is available on GitHub: https://github.com/abunuwas/short-tut....

In this tutorial, you'll learn to validate JSON Web Tokens (JWTs) issued by Auth0 in FastAPI applications. You'll also learn to add authorization controls on your FastAPI endpoints using dependency injection.

As you'll see, it's really simple to accomplish all this, and it's a very secure and reliable way to get user management and authorization out of the box for your applications.

For a deep dive into JSON Web Tokens, check out "Working with JWTs in Python" (   • Working with JWTs in Python  ).

Let's go!

00:00 Introduction
00:52 Setting up the virtual environment and installing dependencies
01:04 Understanding JSON Web Tokens
04:16 Understanding JWT signatures
05:14 Fetch the OIDC configuration and the JWS keys from the well-known endpoint
07:50 Implementing a lookup function to find the JWT's signing key (find_public_key())
10:06 Implementing the token validation function (validate_token())
13:53 Using validate_token() in an endpoint
17:12 Adding a model for user claims (UserClaims class)
18:17 Adding authorization to an endpoint with dependency injection
22:31 Making the validate_token() function reusable across all authenticated endpoints
25:16 Handling invalid tokens
27:44 Additional considerations for API authentication and authorization
31:57 Wrapup


#python #fastapi #auth0 #apisecurity #jwts #jsonwebtokens

Validate JWTs issued by Auth0 in FastAPI

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Анатомия масштабируемого проекта Python (FastAPI)

Анатомия масштабируемого проекта Python (FastAPI)

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Claude Code Built Me a WordPress Plugin Chatbot (Full Build Walkthrough)

Claude Code Built Me a WordPress Plugin Chatbot (Full Build Walkthrough)

Я в опасности

Я в опасности

Кто пишет код лучше всех? Сравнил GPT‑5.2, Opus 4.5, Sonnet 4.5, Gemini 3, Qwen 3 Max, Kimi, GLM

Кто пишет код лучше всех? Сравнил GPT‑5.2, Opus 4.5, Sonnet 4.5, Gemini 3, Qwen 3 Max, Kimi, GLM

Introduction to Auth0: What is Auth0, Its Features, Benefits & Implementation

Introduction to Auth0: What is Auth0, Its Features, Benefits & Implementation

Login and issue API access tokens with Auth0 and FastAPI

Login and issue API access tokens with Auth0 and FastAPI

Setting up Auth0 for API authentication and authorization

Setting up Auth0 for API authentication and authorization

Redis Tutorial In 16 Minutes | Learn What, Basics and How to Implement FastAPI Redis

Redis Tutorial In 16 Minutes | Learn What, Basics and How to Implement FastAPI Redis

Чем ОПАСЕН МАХ? Разбор приложения специалистом по кибер безопасности

Чем ОПАСЕН МАХ? Разбор приложения специалистом по кибер безопасности

Zed IDE: Полный обзор спустя год | Личный опыт разработки на ней

Zed IDE: Полный обзор спустя год | Личный опыт разработки на ней

How to Protect an API in FastAPI with Auth0

How to Protect an API in FastAPI with Auth0

Canary Deployments Explained Using AWS Lambda Function URL (Simple Demo)

Canary Deployments Explained Using AWS Lambda Function URL (Simple Demo)

Modern Python logging

Modern Python logging

Learn EVERYTHING About FastAPI in Just ONE Project (No Fluff!)

Learn EVERYTHING About FastAPI in Just ONE Project (No Fluff!)

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

ОБЪЯСНЕНИЕ АУТЕНТИФИКАЦИИ API! 🔐 OAuth против JWT против API-ключей 🚀

ОБЪЯСНЕНИЕ АУТЕНТИФИКАЦИИ API! 🔐 OAuth против JWT против API-ключей 🚀

FastAPI Authentication with  JWT (JSON Web Tokens)

FastAPI Authentication with JWT (JSON Web Tokens)

Вайб-кодинг в Cursor AI: полный гайд + реальный пример проекта (подходы, техники, трюки)

Вайб-кодинг в Cursor AI: полный гайд + реальный пример проекта (подходы, техники, трюки)

JSON Web tokens vs sessions for authentication | should you use JWTs as session tokens?

JSON Web tokens vs sessions for authentication | should you use JWTs as session tokens?

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com