How to prevent authentication of an ASP.net MVC application in a domain?

Today I started my application on my work machine from Visual Studio, and it surprisingly believes that it is authenticated in my work area. (User.Identity begins to return values ​​about leotsarev@mycompanyname.com ) How can I prevent this?

I do not want my application to register in the domain using only login / password and my own user database.

My web.config https://github.com/joinrpg/joinrpg-net/blob/master/Joinrpg/Web.config

.csproj https://github.com/joinrpg/joinrpg-net/blob/master/Joinrpg/JoinRpg.Web.csproj

+5
source share
1 answer

In IIS Manager, go to your website. Double-click the Authentication icon and make sure that only Anonymous authentication is enabled. I assume that you have Windows Authentication enabled .

0
source

Source: https://habr.com/ru/post/1271416/


All Articles