Skip to content

feat: TokenIssuerProtocol と TokenVerificationException を実装する (#49)#52

Merged
hideyukiMORI merged 1 commit into
mainfrom
feat/issue-49-token-issuer
May 19, 2026
Merged

feat: TokenIssuerProtocol と TokenVerificationException を実装する (#49)#52
hideyukiMORI merged 1 commit into
mainfrom
feat/issue-49-token-issuer

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

  • src/nene2/auth/exceptions.pyTokenVerificationException を新設
  • src/nene2/auth/interfaces.pyTokenIssuerProtocol[claims → str] を追加
  • src/nene2/auth/bearer_token.py — verifier が TokenVerificationException を raise した場合も 401 にマッピング
  • src/nene2/auth/__init__.py — 新クラスをエクスポート

Test plan

  • 17 tests passed (auth 全体)
  • mypy clean
  • ruff clean

Closes #49

🤖 Generated with Claude Code

…する (#49)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit 7f10d56 into main May 19, 2026
@hideyukiMORI hideyukiMORI deleted the feat/issue-49-token-issuer branch May 19, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: TokenIssuerProtocol と TokenVerificationException を Auth レイヤーに追加する

1 participant