-
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
IIS Windows Auth Intermittent 401.1 #2121
Comments
Dear @arj01a, |
Hello, |
I mean, what's your full name? What's your LinkedIn? |
Duplicate of #657 |
For a detailed explanation, refer to the comment in this issue: #657 (comment).
Consider the following workaround until merge #1521 is complete: you'll need to define two routes for Windows authentication:
This method should be applicable for any authentication providers and custom authentications not integrated into Ocelot. |
Will be fixed by #1521 |
Thanks for the information, I will give the workaround a try with setting UseDefaultCredentials in the delegating handler |
Good luck! |
Just a quick update. IIS Gateway => Windows Authentication authPersistSingleRequest=False
All steps had to be completed for the gateway to work with my set-up. Thanks for your help and guidance. |
Congratulations, anonymous user! Your journey with IIS has concluded. However, this solution is not applicable for self-hosted scenarios such as Kestrel in Docker. |
Expected Behavior / New Feature
Ocelot should be working with Windows Authentication
Actual Behavior / Motivation for New Feature
Ocelot should be working with Windows Authentication
Steps to Reproduce the Problem
I have deployed the Gateway on IIS with anonymous.
The service is deployed on IIS with windows authentication.
I managed to get this working with one issue that all requests were being made under the first user. To solve this I enabled authPersistSingleRequest=True
This caused a subsequent issue whereby when making multiple requests (approx. 6 or more) in quick succession some of the requests receive a 401.1 error "The token supplied to the function is invalid".
I have tested setting authPersistSingleRequest=True without using the Gateway and this works without the above issue.
Please can you assist me with this issue?
Specifications
The text was updated successfully, but these errors were encountered: