Skip to content
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

Response of Basic #17

Open
saransh2012 opened this issue Aug 17, 2013 · 2 comments
Open

Response of Basic #17

saransh2012 opened this issue Aug 17, 2013 · 2 comments

Comments

@saransh2012
Copy link

I am using basic authentication for authenticating client credentials in Oauth2orize. In my tests I am using a browser based test-client to do the testing. If the credentials are wrong I get the basic form for user and password being opened to submit username and password.

I don't want that...I just want it to return 401. Is this a problem for browser based client only or is this for all clients? If its for all clients How do I avoid it and just return 401.

@rfink
Copy link

rfink commented Jul 14, 2016

+1

@barraponto
Copy link

Well, you've got to override how passport.authenticate handles the authentication and just not set that hideous www-authenticate header. Like this:

https://github.com/mws970/find-my-new-iPhone/blob/master/auth/router.js#L23-L34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants