-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Koa Support #24
Comments
|
@abbr Yes, Koa tries to be smart about how it handles requests, so when NodeSSPI calls I believe the "appropriate" way to handle this in Koa is to make NodeSSPI act as middleware, where user information is added to the req object (e.g. For example, NodeSSPI middleware could look like this:
https://github.com/koajs/koa/blob/master/docs/guide.md#guide |
I actually initially expected NodeSSPI to behave a bit more like a library that simply checks if a user is authorized and then provide a function to authorize the user, but it looks like NodeSSO is pretty dependent on being able to directly manipulate the requests... |
Have you tried to set |
@abbr I have not, this is wonderful! I'll let you know what I come up with. |
I've been unable to work on this so I'm closing for the time being. |
please take a look at #80 answers it worked for me |
I support comments made by @MarkHerhold, because neither "authoritative" option, nor solution posted at #80 worked for me. The problem with solution at #80 is, that it bypasses koa normal response processing, which is actually a problem in my case, and it is not supported by koa developers, since it is considered a hack ... |
Hi @abbr, I was wondering if you had any plans to support koa or if you had any thoughts on the issue. I'll probably fork this repo and attempt to get NodeSSPI to work with koa in the coming weeks.
Any thoughts on the issue would be much appreciated.
The text was updated successfully, but these errors were encountered: