How to correctly implement Windows Authentication with Identity server 4? Are there any samples to do that?
I looked at the source code of IdentityServer 4 and in the H
In AccountOptions.cs
of your Identity Server make sure that public static bool WindowsAuthenticationEnabled = true;
, I think the quickstart has this defaulted to false
Make sure your app pool for the identity server is using an account with proper credentials (I'm assuming an account that can Query AD). I couldn't use the built-in accounts AppPoolIdentity, LocalService, or Network. LocalSystem almost worked but through another error.
Login at least once to this web server with the account you created above for the app pool. This account does not have to be any sort of administrator. Set the advanced settings on the app pool to load the profile.
Use Anonymous and Windows Credentials set in IIS on the root of your Identity Server, you don't need digest or basic.