-
Notifications
You must be signed in to change notification settings - Fork 57
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
Using express-basic-auth with router ? #36
Comments
@burton666
|
@tiagodinis33 but if you do it that way you can't use the Request parameters to fetch the basicauth details from somewhere. |
It would be nice if there was a way to use the request parameter with
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't figure out how to use express-basic-auth correctly. If I make a POST-request to "/abort" with correct authorization everything seams to work correctly. But if I enter the wrong credentials in the header I get the correct "Credentials rejected" message.
But it still triggers the "/abort" endpoint and also gives med console.log outputs and 200 message:sucess
What am I missing ?
App.js
abort.js
The text was updated successfully, but these errors were encountered: