Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

WindowsAuthentication on Owin self hosted #19

Closed
ravenurse opened this issue Aug 24, 2016 · 2 comments
Closed

WindowsAuthentication on Owin self hosted #19

ravenurse opened this issue Aug 24, 2016 · 2 comments
Labels

Comments

@ravenurse
Copy link

ravenurse commented Aug 24, 2016

Hello, first of all I want to say that I have just discovered your project but I already love it.
I am setting up an IdentityServer that will use Active Directory as users store.
I have already implemented my IUserService and by supplying login and password I can get the Identity as expected.
Now I wanted to skip the login view whenever the client offers windows authentication.
So I have added the package IdentityServer.WindowsAuthentication and followed the examples to make it work.
When I click on the link "application permissions" ( https://localhost:44333/permissions ) everything seems to be fine till the point that the browser shows a blank page of death (HTTP 401) and the logs shows what's attached
log-extract.txt

Any ideas?
Perhaps I forgot something, sorry if the question is stupid.

Thank you!

@leastprivilege
Copy link
Member

leastprivilege commented Aug 25, 2016

Have you enabled Windows authentication on the host?

https://github.com/IdentityServer/WindowsAuthentication/blob/master/source/SelfHost/WindowsAuthenticationExtensions.cs#L8

@ravenurse
Copy link
Author

Hi Dominick and thank you very much!
Of course you solved my problem.
I was wrongly using
AuthenticationSchemes.IntegratedWindowsAuthentication
instead of
AuthenticationSchemes.Negotiate

Again, many thanks and kudos to you guys

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants