docs(auth): restore successful login contract

This commit is contained in:
2026-10-02 07:35:01 +00:00
parent 8544ea30f4
commit 3311866431
@@ -306,6 +306,26 @@ credential, secret, token, cookie가 UI·URL·log·session state에 나타나지
cookie·DB·gateway 상태가 변하지 않는다.
### REQ-001.04-AC02 — 성공 지연·잠금 없음
**판정 기준**
정상 credential은 실패 지연 함수를 사용하지 않고 인증되며, 실패 횟수나 잠금 만료 상태를 생성하지 않는다.
**검증**
`dashboard/auth_server.py`의 login 경로와 authentication source를 검사하여 `enforce_failed_login_delay`가 credential 실패 분기에만 호출되고 failure counter·lock state가 없음을 확인한다. `tests/test_dashboard_authentication.py`의 `test_failed_login_delay_waits_only_for_remaining_minimum_duration` 및 `test_failed_login_delay_does_not_sleep_after_minimum_duration`, 그리고 `tests/test_dashboard_auth_server.py::test_successful_login_sets_hardened_24_hour_cookie`를 실행한다.
**검증 분류**
- 수준: unit/integration/static
- 백엔드: pytest, source inspection
- 케이스: 정상 credential, 실패 지연 helper, 반복 실패 후 재시도
**상태 불변조건**
애플리케이션 failure counter와 lock state를 유지하지 않는다.
### REQ-001.05-AC01 — Absolute TTL과 고정 subject
**판정 기준**