I have a web application protected by windows authentication. In Asp.NET 4.5 I can use the web.config
file to specify exactly which users can use it
<configuration>
<system.web>
<authorization>
<allow users="TEST\admin" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
In Asp.NET core the web.config
file is gone, I guess the allow
and deny
rules should be moved to launchSettings.json
file, but I can't find any reference on how to do it. So... How can I do it? This is the current authentication setting
"iisSettings": {
"windowsAuthentication": true,
"anonymousAuthentication": false,
}