Repository navigation
Conversation
- アクセストークンに SecurityStamp を載せ、検証のたびにDBの値・有効フラグと照合する(Api/AccessTokenValidation)。 これまではリフレッシュトークンだけを失効させていたため、無効化・ロール変更後も最大60分は操作できた - 無効化・ロール変更で UpdateSecurityStampAsync を呼ぶ(単票API・ユーザーCSVの両方) - Identity のトークンプロバイダが未登録で、管理者のパスワードリセット(API・ユーザーCSVの InitialPassword・ 初期管理者の再生成)が例外になっていたのを AddDefaultTokenProviders で直した - CSV出力で先頭が = @ タブ CR、または数値でない + - の値に ' を付ける。取込では外す(出力をそのまま取り込み直せる) - Spec.md 7.4・3.8、改訂145 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
概要
脆弱性レビューで見つかった2件と、その途中で見つかった既存バグ1件の修正。#31 の上に積んでいる(Spec.md の改訂144に続けて改訂145を足しているため)。
変更
Api/AccessTokenValidation.cs)UpdateSecurityStampAsyncを呼ぶ(UsersControllerとユーザーCSV取込の両方)=@タブ CR、または数値でない+-の値に'を付けて出力する(CsvFile.cs)InitialPassword・デスクトップ版の初期管理者パスワード再生成)が500になっていた →AddDefaultTokenProviders()を追加確認
dotnet build成功(新規警告なし)dotnet test全緑(API 285件・画面 229件)。追加テスト:AuthTests(ロール変更・無効化・パスワードリセット後に古いトークンが401、ロール変更後はリフレッシュで新ロール)、MasterCsvTests(数式の印と取り込み直しでの復元)配備時の注意
配備前に発行されたアクセストークンにはスタンプが無いため一度だけ401になるが、クライアントが自動でリフレッシュするので利用者の操作は不要。
🤖 Generated with Claude Code