I have a .Net Core 3.1 MVC application that uses Windows Authentication. I am using Visual Studio 2019 for IDE. I use the Identity.Name to get the users login and check it against a database for authorization. I also use DirectoryServices to get some of the other Active Directory attributes for authorization purposes.
I occasionally run into an authorization issues that I need to debug. I find it very difficult to debug these issues as I can't easily alter the user I am current logged in as. I'd also like the ability to Test my application as different AD users.
Is there any way in VS 2019 to prompt user login when debugging? or is there a simple way to inject an identity for testing purposes?