I am using .net core 3.1 and my mvc application was working fine. The need arose for me to add
services.Configure<SecurityStampValidatorOptions>(options =>
{
options.ValidationInterval = TimeSpan.Zero;
});
to the application Startup.cs. As soon as it gets added to the code, and a user logs in, then my functions can no longer log into the sql database "Login failed for user". I am calling stored procedures in my code, but I have a team member who is using entity framework and the security stamp validation does not cause any issues, I do not know if that is a factor.
I have tried changing the position of it in the ConfigureServices function, and checked online for possible solutions, but nothing has worked.
After adding the securitystamp validator I expected that the application would continue working as before, with the addition of the stamp being checked constantly.
Any assistance would be appreciated.