Closed artisticcheese closed 7 years ago
Documentation needs to be updated that services section shall contain following statement to allow both anonymous and Windows to work together
services.AddAuthentication(Microsoft.AspNetCore.Server.IISIntegration.IISDefaults.AuthenticationScheme);
Note HttpSys has it's own constant for this, HttpSysDefaults.AuthenticationScheme
though the value happens to the be same as the one from IISDefaults.
@Tratcher So I need to do
services.AddAuthentication(Microsoft.AspNetCore.Server.HttpSysDefaults.AuthenticationScheme);
?
Yes, otherwise [Authorize]
will give you an error about no default scheme set.
Code below does not work in http.sys while working in IIS where both anonymous and Windows authentication is specified and access to individual methods are based of tags