We are having issues with the Passport-Twitter auth strategy now that Twitter deployed a new callback URL setting change. Can you help us fix this as we have users who are blocked from our site. Any assistance would be much appreciated. We are trying to pass callbackURL in authentication function instead of strategy. Its been working for over 2 years until yesterday.
Here is a sample of our code:
router.get('/fan/register/twitter',
passport.authenticate('twitter',{callbackURL: '/member/fan/register/twitter/return'})
);
// step 2
router.get('/fan/register/twitter/return',
passport.authenticate('twitter', { failureRedirect: '/error' }),
function(req, res) {
console.log("fan register twitter with success------------------" , req.user);
//var username = req.user._json.screen_name;
//username = username.toLowerCase();
req.session.twitterUser = req.user;
action-required-sign-in-with-twitter-users-must-whitelist-callback-urls
FYI, we have made all the changes in app settings as per the link above
Thanks!
We are having issues with the Passport-Twitter auth strategy now that Twitter deployed a new callback URL setting change. Can you help us fix this as we have users who are blocked from our site. Any assistance would be much appreciated. We are trying to pass callbackURL in authentication function instead of strategy. Its been working for over 2 years until yesterday.
Here is a sample of our code:
action-required-sign-in-with-twitter-users-must-whitelist-callback-urls
FYI, we have made all the changes in app settings as per the link above
Thanks!