Thinktecture IdentityServer v3 with WindowsAuth

2020-05-29 05:58发布

问题:

I want to use Thinktecture IdentityServer as a token-provider and authenticate users against ActiveDirectory. So that token contain information about the domain user.

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.

回答1:

You would need to create a custom user service , see this example https://gist.github.com/tjrobinson/0ad6c790e90d7a385eb1