How to implement Windows Authentication with IdentityServer 4

后端 未结 4 804
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 11:10

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

4条回答
  •  眼角桃花
    2021-01-31 11:38

    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

    • Kestrel with IIS integration
    • WebListener

    In both cases you invoke the Windows machinery by challenging a scheme of either Negotiate or NTLM. 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

提交回复
热议问题