如何使用IdentityServer 4实施Windows身份验证 [英] How to implement Windows Authentication with IdentityServer 4

查看:123
本文介绍了如何使用IdentityServer 4实施Windows身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用身份服务器4正确实施Windows身份验证? 有样品吗?

How to correctly implement Windows Authentication with Identity server 4? Are there any samples to do that?

我查看了IdentityServer 4的源代码,并且在AccountController的Host项目中,我注意到有Windows身份验证检查,并且它们是作为外部提供程序实现的.但我似乎无法工作的配置. 有没有人用idsrv4成功实现Windows身份验证以及如何实现?

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 cant seem to work the configuration. Has anybody successfully implemented windows authentication with idsrv4 and how?

推荐答案

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

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

这篇关于如何使用IdentityServer 4实施Windows身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆