You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change_password_service artık başarılı değişimde mevcut access ve refresh token'ı blacklist'e atıyor (güvenlik garantisi: değişimden önce çalınan token anında geçersiz olur). Ancak test_change_password yalnızca eski/yeni parolayla login denemesini doğruluyor; değişimden önceki access/refresh token'ın gerçekten reddedildiğine dair hiçbir assertion yok. REVIEW.md §6.7 auth davranışlarında test eksikliğini major sayar.
REVIEW.md §6.7: "Test eksikliği non-critical endpoint için minor öneri, blocking değil. Auth/payment/silme'de major."
Öneri: Değişim öncesi access cookie'sini saklayıp, değişim sonrası o token'la korumalı bir uca yapılan isteğin 401 döndürdüğünü doğrulayan bir assertion ekle.
change_password rotası token'ları yalnızca request.cookies.get(...) üzerinden okuyor. Repo Authorization: Bearer fallback'ini destekliyor (REVIEW.md §3.6); Bearer ile giriş yapan istemcide cookie None olur, dolayısıyla _revoke_token(None) no-op kalır ve çalınmış access token süresi dolana kadar geçerli kalır. Servisin docstring'indeki "immediately invalidates any token that may have been stolen before the change" garantisi bu istemciler için sağlanmıyor.
access_token=request.cookies.get("access_token"),
Öneri: Cookie yoksa Authorization başlığından da oku: access_token = request.cookies.get("access_token") or (request.headers.get("Authorization", "").removeprefix("Bearer ").strip() or None).
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
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.
No description provided.