且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用IdentityServer 4实施Windows身份验证

更新时间:2023-12-01 15:31:16

很快将在这里发布更多文档:

There will be more documentation soon here:

https://identityserver4.readthedocs.io

但是简而言之-从IdentityServer的角度来看,是的Windows身份验证是一个外部提供程序(与IS本机身份验证cookie相对).

But in short - yes from IdentityServer's point of view Windows authentication is an external provider (as opposed to the IS native authentication cookie).

实现Windows身份验证不需要任何操作-只需使用支持它的主机即可.

There is nothing that YOU need to do to implement Windows authentication - just use a host that supports it.

要么是

  • 与IIS集成的Kestrel
  • WebListener

在两种情况下,您都通过挑战NegotiateNTLM的方案来调用Windows机制.这不是特定于IS的-而是ASP.NET Core的工作方式.

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.

我们的快速入门用户界面显示了如何执行此操作-检查AccountController.

Our quick start UI shows how to do that - check the AccountController.

https://github.com/IdentityServer/IdentityServer4.Quickstart.UI