问题描述
我想将Thinktecture IdentityServer用作令牌提供者,并根据ActiveDirectory对用户进行身份验证.这样该令牌包含有关域用户的信息.
I want to use Thinktecture IdentityServer as a token-provider and authenticate users against ActiveDirectory. So that token contain information about the domain user.
客户端和IdentityServer(IIS)都位于Windows域中.当客户端通过IIS中的用户帐户进行身份验证时,它将使用WindowsAuth.
Both Client and IdentityServer (IIS) reside inside a Windows domain. When Client authenticates with the user account in IIS it uses WindowsAuth.
这怎么办?感谢工作代码示例.
How can this be done? Appreciate for working code sample.
推荐答案
您将需要创建自定义用户服务,请参见以下示例 https://gist.github.com/tjrobinson/0ad6c790e90d7a385eb1
You would need to create a custom user service , see this example https://gist.github.com/tjrobinson/0ad6c790e90d7a385eb1
这篇关于具有WindowsAuth的Thinktecture IdentityServer v3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!