How to implement Windows Authentication with IdentityServer 4

后端 未结 4 727
爱一瞬间的悲伤
爱一瞬间的悲伤 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:21

    In AccountOptions.cs of your Identity Server make sure that public static bool WindowsAuthenticationEnabled = true; , I think the quickstart has this defaulted to false

    Make sure your app pool for the identity server is using an account with proper credentials (I'm assuming an account that can Query AD). I couldn't use the built-in accounts AppPoolIdentity, LocalService, or Network. LocalSystem almost worked but through another error.

    Login at least once to this web server with the account you created above for the app pool. This account does not have to be any sort of administrator. Set the advanced settings on the app pool to load the profile.

    Use Anonymous and Windows Credentials set in IIS on the root of your Identity Server, you don't need digest or basic.

提交回复
热议问题