⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

Аутентификация «Dual JWT». Минимум ресурсов при высокой безопасности

habrahabr.ru ·Russian Federation · world
Words
69
Chars
485
AI summary
Yes
Full story

The article presents one implementation of the OAuth 2.0 standard, RFC 6749. Its "Dual JWT" authentication scheme aims to minimize infrastructure resource consumption while keeping a fairly high, though not maximum, level of security. The article examines how the authentication scheme works, its security parameters, and the economics of the solution, including how it reduces costs under FinOps. The core pattern uses an access token in the header and a refresh token in a cookie.

В статье — вариант реализации стандарта OAuth 2.0 (RFC 6749). Цель схемы «Dual JWT» — минимизировать потребление ресурсов инфраструктуры при сохранении достаточно высокого (но не максимального) уровня безопасности. Разберём, как устроена схема аутентификации, параметры её безопасности, а также экономику решения: за счёт чего схема снижает затраты (FinOps). Суть схемы: access в заголовке + refresh в cookie, оба — stateless-JWT, плюс deny list в Redis для отзыва сессий. Читать далее

Open article