Repository navigation
feat: 署名の鍵の分離、ログアウトによるセッションの失効、/introspect の共有秘密 (3.1.0) - #6
Merged
Merged
Conversation
- JWT の鍵をトークンの種類ごと (セッション、90 日、アクセス、リフレッシュ、認可コード、同意、state) の環境変数 JWT_SECRET_* に分ける。起動時に長さと重複を検査 - ブラウザのセッションと API 用トークンにアカウントごとの世代 (sgen) を入れ、/logout で進めて失効させる。/data の記録は 0600 で書く - INTROSPECT_SECRET を設定すると /introspect は X-Toro-Token の一致を要求する (未設定なら従来どおり) - redirect_uri の厳密一致の関数 (ループバックは RFC 8252) を用意。登録の保存が無いので、まだ認可へは繋いでいない - 試験: jwt、oauth/client、auth/account、世代の記録、tests/phase7.rs (鍵の分離、ログアウト、共有秘密)
malken21
added a commit
that referenced
this pull request
Nov 24, 2026
feat: 署名の鍵の分離、ログアウトによるセッションの失効、/introspect の共有秘密 (3.1.0)
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
F-05 の a1・b1・D10 を実装 (c1・d・e1 は別)。リリース: マージ後に v3.1.0 のタグ。環境変数: JWT_SECRET_* (7 つ)、INTROSPECT_SECRET (任意)。既存のトークンは全て無効になる (再ログイン)。