samedi 28 mars 2015

Google Oauth 2.0 scope assignment doesnt work in mobile browser

I am not getting any errors, but when I authenticate in a mobile browser (tested on modern versions ios and android) the authentication permissions Google asks me to confirm are only those of the 'profile' scope, not the two other scopes I am using (YouTube).


It works perfectly in desktop browser.


using express.js and passport.js



router.get('/auth/google', passport.authenticate('google', {
scope : 'profile http://ift.tt/1e5P8Hx http://ift.tt/19Ahhb9',
accessType: 'offline'
}));

Aucun commentaire:

Enregistrer un commentaire