Skip to content

Commit

Permalink
no longer cache remember me token (#3267)
Browse files Browse the repository at this point in the history
(cherry picked from commit d3aceea)
  • Loading branch information
ike-kottlowski authored and trmartin4 committed Sep 13, 2023
1 parent d6df78e commit c024b4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Identity/IdentityServer/BaseRequestValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ protected async Task ValidateAsync(T context, ValidatedTokenRequest request,
}
return;
}
await Core.Utilities.DistributedCacheExtensions.SetAsync(_distributedCache, cacheKey, twoFactorToken, _cacheEntryOptions);
if (twoFactorProviderType != TwoFactorProviderType.Remember)
{
await Core.Utilities.DistributedCacheExtensions.SetAsync(_distributedCache, cacheKey, twoFactorToken, _cacheEntryOptions);
}
}
else
{
Expand Down

0 comments on commit c024b4a

Please sign in to comment.