I am using ASP.NET MVC with Microsoft Identity framework. The application needs to support either forms or windows based authentication. This is a deployment time configuration.
One of the asks from security testing results is to stop users from simultaneous logins. If the web application is forms authenticated, then I can fall back on CookieAuthenticationProvider and ensure that cookie is invalidated if there are simultaneous logins (Prevent multiple logins).
I am not sure how to achieve similar kind of thing when web application is configured for windows authentication. Any suggestions will be helpful.