Doesn't work with Outlook.com
Closed this issue · 4 comments
This OAuth provider does not seem to work with Outlook.com
I am successfully using 1.0.0 to log into outlook.com accounts. What error are you seeing?
Essentially, the callback function associated with passport.use is never getting called. I get the prompt in Outlook.com. I accept. I am redirected to the callbackUrl. However, the callback function (the process.nextTick piece) is never called. For that reason, I never get the access/refresh token.
I can see that I'm successfully authenticated with Outlook.com by logging into Outlook.com, visiting user options, clicking Account details, clicking Related accounts, then clicking Manage apps and services.
My code is basically setup like this.
var WindowsLiveStrategy = require('passport-windowslive').Strategy;
passport.use(new WindowsLiveStrategy(
{
callbackURL: 'http://www.myapp.com/outlook/callback' ,
clientID: 'My Client ID',
clientSecret: 'keep it secret, keep it safe'
},
function (req, accessToken, refreshToken, profile, done) {
// handle this call async
process.nextTick(function () {
logger.info('processing next tick. ');
return done(null, true);
});
}
));
var settings = { scope: ['wl.imap','wl.offline_access', 'wl.emails'] };
passport.authenticate('windowslive', settings)(req, res, function () {
res.status(200).send();
});
Thank you for your help.
sorry I don't have time to help debug this right now. Someone else should
be able to help you out since you provided a good summary though. Good luck
Unable to reproduce this. Closing due to inactivity.