Closed lublak closed 2 years ago
@jlguenego I wanted to ask if you could share your test configuration. So I can compare it with my system and see where the difference is.
@lublak, I had similar challenges at first. Make sure preserve Host Headers is used and you also have to add the header Forwarded
or X-Forwarded-for
including the IP and port.
It is possible, that the server context handle manager can't find the cached handle if the proxy isn't forwarding the ip and port from the client (see #116). So make sure, you are passing both within the headers.
@anotherCoward We also switched to nginx because working with iis has always been difficult and has always presented us with problems. After switching to nginx, we no longer have any problems ourselves. That's why I can't test it anymore and would close the issue here (which I admittedly forgot). But thanks for the answer :) it's really nice of you!
Describe the bug
First of all: localhost:8090/login/ works fine. If I use iis as a reverse proxy, the whole thing doesn't work at all. test.intranet.local/login/ On the firefox browser i get an
Malformed authentication token: NTLM
error On the Edge browser i get repeating logins.To Reproduce
I added also spn.
Trace
Firefox:
Firefox after restarting the express server and just press F5
Edge:
Expected behavior
That it works with reverse proxy just like with iis.
Environment version:
Please indicates also:
Additional context
It can also be that settings must be made in the IIS. But then it would be good to have a documentation about it.
https://github.com/jlguenego/node-expose-sspi/blob/master/doc/use-case/production-windows.md