Closed gjovanov closed 3 years ago
Actually, after debugging it, I realized that req
should have props (getters and setters) from the ExpressJS request API :
after extending the req
with getters/setters of those properties, it started to work.
Sorry for bothering u, but it seems like putting it on paper (this times as a github issue), allowed me to see what was wrong😄
Thanks for ur effort invested to provide this lib.
Describe the bug This is more a question than a bug.
So far we have used this lib with Fastify and it works perfectly. Since recently we are evaluating to migrate our HTTP/WS app to uWebSockets.js, which doesn't support middleware functions out-of-the box
How to use this lib without middleware?
To Reproduce
Example tried:
Trace only this log:
node-expose-sspi:auth no authorization key in header +0ms
then the response is ended with these headers:
Content-Length: 0 uWebSockets: 18 WWW-Authenticate: Negotiate
It seems to me that these headers should have been sent to the AD, not as final response to the browser.
How to work around this?
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment version:
Please indicates also:
Additional context Add any other context about the problem here. N/A
Is there a way to do the AD auth without middleware support... e.g. via sequential async calls?
Thanks in advance.