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

redirects to failureRedirect on authentication callback

Open azjones opened this issue 9 years ago • 3 comments

I am using Krakenjs >1.0

router.get('/dropbox/callback', passport.authenticate('dropbox', { failureRedirect: '/auth' }), function(req, res) { res.redirect('/home'); });

Even though the authentication is successful, and I am able to load the profile obj, I am always redirected to "/auth", when I should be redirected to "/home".

I've even tried:

router.get('/dropbox/callback', passport.authenticate('dropbox', { session: false, successRedirect: '/home', failureRedirect: '/auth', failureFlash: true }));

Any help would be great! Thanks!

azjones avatar Jul 29 '15 02:07 azjones

Having the same issue as well. I'm getting the profile object no problem, but still getting the failureRedirect

GabeRivera avatar Mar 26 '18 18:03 GabeRivera

The same issue using passport-dropbox-oauth2 (Ref. http://www.passportjs.org/packages/passport-dropbox-oauth2/), the callback is not getting called. The strategy works fine locally, but when deployed on AWS cloud lambda, not getting the access and refresh token and is redirected to the failure redirect url.

Pio-Dev-Github avatar Apr 14 '23 12:04 Pio-Dev-Github

Can someone please look into the issue?

Pio-Dev-Github avatar Apr 18 '23 10:04 Pio-Dev-Github