From d3aceea3770371a5f83c04ef0b7a833b3c725bb8 Mon Sep 17 00:00:00 2001 From: Ike <137194738+ike-kottlowski@users.noreply.github.com> Date: Wed, 13 Sep 2023 06:08:25 -0700 Subject: [PATCH] no longer cache remember me token (#3267) --- src/Identity/IdentityServer/BaseRequestValidator.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Identity/IdentityServer/BaseRequestValidator.cs b/src/Identity/IdentityServer/BaseRequestValidator.cs index 97b4783b74..2fa41806b9 100644 --- a/src/Identity/IdentityServer/BaseRequestValidator.cs +++ b/src/Identity/IdentityServer/BaseRequestValidator.cs @@ -163,7 +163,10 @@ public abstract class BaseRequestValidator where T : class } return; } - await Core.Utilities.DistributedCacheExtensions.SetAsync(_distributedCache, cacheKey, twoFactorToken, _cacheEntryOptions); + if (twoFactorProviderType != TwoFactorProviderType.Remember) + { + await Core.Utilities.DistributedCacheExtensions.SetAsync(_distributedCache, cacheKey, twoFactorToken, _cacheEntryOptions); + } } else {