jaredhanson / passport-openidconnect

OpenID Connect authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-openidconnect/?utm_source=github&utm_medium=referral&utm_campaign=passport-openidconnect&utm_content=about
MIT License
188 stars 173 forks source link

Provide an option to authenticate using header for testing #90

Open purejgleason opened 2 years ago

purejgleason commented 2 years ago

I have a situation where I am logging in using a username and password using Auth0. I would like to be able to use the access token I get without a browser (testing uses supertest). I tried using JWT as an alternative strategy alongside this one but having other issues.

Would it be possible to add the Authorization header as a way to log in for testing?

jaredhanson commented 2 years ago

It is unclear to me how adding an Authorization header would help with testing, specifically in relation to this strategy. Could you provide more information?