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 Host project in the AccountController, I noticed that there is Windows Authentication checks and they are implemented as an External Provider, but I can't seem to work out the configuration.
Has anybody successfully implemented windows authentication with idsrv4 and how?
There will be more documentation soon here:
https://identityserver4.readthedocs.io
But in short - yes from IdentityServer's point of view Windows authentication is an external provider (as opposed to the IS native authentication cookie).
There is nothing that YOU need to do to implement Windows authentication - just use a host that supports it.
That's either
In both cases you invoke the Windows machinery by challenging a scheme of either
Negotiate
orNTLM
. This is not IS specific - but the way ASP.NET Core works.Our quick start UI shows how to do that - check the AccountController.
https://github.com/IdentityServer/IdentityServer4.Quickstart.UI