FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(api): support explicit typ validation to prevent token type confusion (RFC 8725 §3.11) (#100) by ZhuchkaTriplesix · Pull Request #111 · QueryaHub/OxyJWT · GitHub

feat(api): support explicit typ validation to prevent token type confusion (RFC 8725 §3.11) (#100) - #111

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/100-explicit-typ-validation
Aug 26, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/100-explicit-typ-validation

Conversation

Copy link
Copy Markdown
Member

📝 Описание изменений

Реализована явная валидация типа токена (typ JOSE header) через параметр typ в decode() / decode_complete() и опцию options={"verify_typ": True, "typ": "..."} согласно рекомендациям RFC 8725 §3.11 для предотвращения атак Token Type Confusion.

🔗 Связанные Issue

Closes #100

🧪 Чеклист проверки

  • Юнит-тесты пройдены без ошибок (pytest, mypy)
  • Добавлены тесты валидации заголовка typ в tests/test_validation.py
  • Обновлен файл заглушек api_jwt.pyi
  • Нет конфликтов с целевой веткой dev

ZhuchkaTriplesix added enhancement New feature or request p2 Nice to have or post-1.0 labels Aug 26, 2026
ZhuchkaTriplesix merged commit de50302 into dev Aug 26, 2026
6 checks passed
ZhuchkaTriplesix deleted the issue/100-explicit-typ-validation branch August 26, 2026 11:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request p2 Nice to have or post-1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL