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

how to send custom response for auth failure #27

Open
msimerson opened this issue Sep 30, 2020 · 0 comments
Open

how to send custom response for auth failure #27

msimerson opened this issue Sep 30, 2020 · 0 comments

Comments

@msimerson
Copy link

I've got my app set up with passport-http and it authenticates requests as expected. Thanks for the app and docs.

My issue is that this project I'm working on is communicating with an XML driven API service sending me requests. All my responses need to be XML formatted. And they are, except for passport generated auth errors. There are no sessions, so every HTTP request will have auth data.

I've been poking around the code looking to see if there's a way to control the unauthorized response but it appears not. Did I miss something?

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

1 participant