Add authentication methods to access protected resources #15
@ -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