fix: set correct cache key
All checks were successful
.NET Test Pipeline / build-and-test (pull_request) Successful in 3m54s
All checks were successful
.NET Test Pipeline / build-and-test (pull_request) Successful in 3m54s
This commit is contained in:
parent
160c7505f0
commit
8d4c482bbd
@ -72,7 +72,7 @@ public class AuthService(ICacheService cache, IAccessToken accessTokenService, I
|
|||||||
authToken.UserAgent != request.UserAgent &&
|
authToken.UserAgent != request.UserAgent &&
|
||||||
authToken.Ip != request.Ip)
|
authToken.Ip != request.Ip)
|
||||||
{
|
{
|
||||||
await cache.RemoveAsync(request.Fingerprint, cancellation);
|
await cache.RemoveAsync(GetAuthCacheKey(request.Fingerprint), cancellation);
|
||||||
await RevokeAccessToken(authToken.AccessToken);
|
await RevokeAccessToken(authToken.AccessToken);
|
||||||
|
|
||||||
throw new SecurityException(request.Fingerprint);
|
throw new SecurityException(request.Fingerprint);
|
||||||
|
Loading…
Reference in New Issue
Block a user