passport-oauth2
passport-oauth2 copied to clipboard
OAuth 2.0 authentication strategy for Passport and Node.js.
Right now with all the modules that use Passport OAuth2, the verify function (2nd parameter of a Strategy) has this schema and workflow, when using callbacks: ```js const github =...
Hi! I'm trying to read the application state in an error handler. It works fine inside a success handler, but inside the error handler `req.authInfo` is empty. But we may...
Does it make sense to add compatibility to fastify in this module? for example, in lib / strategy.js the redirect method uses res.setHeader and res.end that are not compatible with...
koa ^2.13.0 koa-passport latest passport-facebook latest Facebook can't authenticate because callbackURL becomes http://. But my request URL is https://. Then I providing absolute callbackURL with https:// scheme, it working. It...
```// auth logout router.get('/logout', (req,res,next)=>{ req.logOut(); res.redirect('/'); }) ``` I'm using cookie-session. I've tried everything from setting req.session to null and clearing cookie with res.cookie. It seems as though, on...
Previously, when generating error responses, `TokenError` was not passed the HTTP status code that was passed to the error response handler (`parseErrorResponse`). This resulted in every kind of error being...
Hi, I'm new into this. Can I use passport-oauth2 pacakage into angular with guards? (without node and express) Earlier I have used this approach with reactjs and node.Js
I am using this for making a API call. The API uses oauth2 but it needs code challenge. Which is making it impossible to make calls [API Docs](https://myanimelist.net/apiconfig/references/authorization) Here is...
It seems like when a `TokenError` is generated, it isn't passed the status code that was generated by the upstream service. This can be seen in [`OAuth2Strategy#parseErrorResponse`](https://github.com/jaredhanson/passport-oauth2/blob/master/lib/strategy.js#L358). It should pass...