In my specific situation, when a user's license has expired, a flag is set on the relevant AspNetUsers
table.
This flag is checked in the login method, and if correct then the SignInManager
will log the user in.
However my site, and many others, also make use of the "Remember Me" functionality. Now I have the situation where a customer's sessions is remembered and the check to see if the user's license has expired is never checked again until they next login.
Does aspnet core have a hook someplace where, when calling a method in a controller marked with the [Authorize]
tag, that I can perform some additional logic (such as check the expired flag) and log them out should something fail?