-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about Windows Auth #239
Comments
@rakhimzhanov thanks for your interest in the project. I have not written anything specific for Windows Authentication. However I think you could get Ocelot using it following this guide https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?tabs=aspnetcore2x and the Ocelot docs http://ocelot.readthedocs.io/en/latest/features/authentication.html You need to get windows auth registered as with provider then associates it’s key with reroutes in Ocelot. Now in terms of forwarding Windows auth to downstream services I’m not sure how this would work. My experience with Windows auth is limited. If the downstream service needs a header then Ocelot should be able to forward this on from the upstream request. Let me know if that helps and if not this might be a feature for the future. |
I am still facing issues with Windows Authentication. Has this been fixed in the latest Ocelot version? My gateway is a virtual directory hosted under default site with anonymous access. Note: - in IE options settings for "Enable Integrated windows authentication is enabled" from user machine. This is required otherwise the domain.com will not carry the identity. Default website With this from user machine when we call with servername.domain.com/gateway/ to get the user name from services, we get the user name for first user. When the same url is hit by another user he gets the username of the first user, whereas the should have got is his own user name. what we see is that persist-auth in headers is set to true for communication between gateway and services. Please assist on the same. |
@soumaz I am not sure why this doesn't work, can you debug and submit a PR to fix? Unfortunately I don't have time to debug learn and fix this issue :( |
@TomPallister I created a PR for this as I needed it too: #1521 |
Hello Tom,
Could you please advise, can Ocelot authenticate using windows auth to services where windows auth also enabled? (I mean if gateway and services works only with windows auth)
Thank you.
The text was updated successfully, but these errors were encountered: