I am currently trying to enable Windows Integrated Authentication for my ASP.NET Core 5.0 Web-App in IIS 10. The basic setup for Integrated Authentication is well documented and was fairly easy to implement. But my Web-App has an ApiController, that contains some Actions which i want unauthenticated users to be able to use.
In this Microsoft documentation, it states that i can enable both Anonymous Auth and Integrated Auth on my IIS Webpage and then work with [AllowAnonymous]
and [Authorize]
Attributes in my MVC controllers.
I did additional research on the web and found a lot of SO and other forum's discussions about this topic, of which most date back to around 2010 and might be outdated, while the linked documentation is from 2021 and therefore should be more up-to-date. The consensus on the discussion threads and blogs i found was that this is not possible. And as i tried myself i also came to the conclusion that Anonymous Auth always takes precedence over Integrated Auth and completely cancels it out.
So, is the MS documentation just wrong here or am i missing something?