Thursday 15 May 2014

javascript - Meteor with accounts-google package - Login not working on iOS (Safari) -



javascript - Meteor with accounts-google package - Login not working on iOS (Safari) -

i'm having issue testing meteor app/site on mobile devices (safari in ios). it's making utilize of accounts-google/accounts-ui packages.

on desktop browsers i'm able authenticate , log in via google perfectly. when testing on mobile safari after click 'sign in google' i'm able authenticate google, end stuck on '_oauth/google?close' page, next message: "login completed. click here close window." clicking link nothing.

any thought what's happening here?

so, appears there's bug/issue ios 8 that's interfering 'popup' style of login, not google handful of other services: https://devforums.apple.com/message/1044445#1044445 (apple dev business relationship required see above). long story short, it's unresolved ios 8 issue.

there couple of github issues discussing above:

https://github.com/meteor/meteor/issues/2720

https://github.com/meteor/meteor/issues/2639

the workaround: add together 'loginstyle: "redirect"' service configuration, ie:

serviceconfiguration.configurations.insert({ service: "google", clientid: "xyz.apps.googleusercontent.com", secret: "123xyz", loginstyle: "redirect" });

note

you need update google app in developer console include new redirect uri, ie: http://example.com/_oauth/google

javascript ios safari meteor

No comments:

Post a Comment