passport-oauth2 icon indicating copy to clipboard operation
passport-oauth2 copied to clipboard

OAuth 2.0 authentication strategy for Passport and Node.js.

Results 98 passport-oauth2 issues
Sort by recently updated
recently updated
newest added

Hi :) ``` passport.use('oauth2-login', new OAuth2Strategy( { authorizationURL: '...', tokenURL: '...', clientID: '...', clientSecret: '...', callbackURL: 'http://.../active-directory/success', passReqToCallback: true }, function (req, accessToken, refreshToken, params, profile, cb) { console.log(11112322222); //...

passport.use('oAuth2', new OAuth2Strategy( { authorizationURL: '...', tokenURL: '...', clientID: '...', clientSecret: '...', callbackURL: '...' }, function(accessToken, refreshToken, profile, done) { // Here i get arguments accessToken and refreshToken, // empty...

Please add docs on the utilization of `scope` and `scopeSeperator` for the `new OAuth2Strategy(options)` constructor. https://github.com/jaredhanson/passport-oauth2/blob/master/lib/strategy.js#L95 https://github.com/jaredhanson/passport-oauth2/blob/master/lib/strategy.js#L96

I added in a simple option `useExactURLs` that prevents the following code from being executed if the `callbackURL` is missing the HTTP protocol: ``` var parsed = url.parse(callbackURL); if (!parsed.protocol)...

I'm adding this feature for cases in which strategy users want to have default scope set up in their Strategy constructor (maybe something like `profile`) and then customize other scopes...

In regards to [https://github.com/jaredhanson/passport-oauth2/issues/51](url), this is what I'm proposing: An option (just like passReqToCallback) to disable auto resolving callback urls, though, it will be passed in the call to passport.use()...

Added a checking for param error so that appropriate errors are returned to the client.

We experienced an issue where we needed to adjust http request agent configurations but could not find anyway of configuring passport oauth2Strategy to propagate those configurations to the underlying library....

Add https option in case some Load Balancer such GCE can not proxy HTTPS in environment such k8s architecture. Related [2509](https://github.com/eggjs/egg/issues/2509)

My app allows many different domains to be used so I need to store clientID and clientSecret in the database with each domain in the database. Can you give me...