jaredhanson/passport-http

Shouldn't an authentication failure return status 401 as well?

sk91 opened this issue · 4 comments

sk91 commented
Shouldn't an authentication failure return status 401 as well?

why this has been closed? is it still valid?

ok I guess this has been cloased because the callback you pass to the authorization method gets an error when there is an auth failure. In this case you can throw 401

sk91 commented

@gnuton sorry, don't remember exactly why I closed it. I fixed it for my self and made a pull request:

#13

sk91 commented

But it was ignored for more than 5 years ...