Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Two factor code cache in database #4587


User avatar
0
vladsd created

Problem: If you enable two factor, it will use cache to store codes it generates. Issue: If you have multiserver environment, it would not find the code on the other servers. Not a good solution: One can configure Redis for caching, but there is no way to specify for cache just to use redis for that cache! Better solution: Cache in database, it would be nice if mongodb database was supported for caching.

Any other ideas?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @vladsd,

    This is ASP.NET Identity Core's implementation and as far as I know, it stores codes in cookie. So, it wouldn't be a problem when using multiserver environment. Have you tried this scenario ?