googlearchive / gplus-quickstart-javascript

This quick-start app is built in JavaScript and lets you get started with the Google+ platform in a few minutes.
https://developers.google.com/+/quickstart/javascript
92 stars 111 forks source link

Does not work on Safari #16

Open shaozi opened 8 years ago

shaozi commented 8 years ago

Worked on chrome. But does not work on Safari 9.0.3(11601.4.4) on OS X El Capitan After clicked Sign in button, consent screen pops out. Then I clicked Allow, the consent is dismissed but nothing happened.

gguuss commented 8 years ago

Thanks for the heads up, I'll check soon.

gguuss commented 8 years ago

I just checked and was able to run the sample from Safari. Are you seeing any errors on the console?

seriojaignat commented 8 years ago

The https://gusclass.com/demos/button2/min.html is not working in Safari Private Mode, the browser shows an empty page after acceptance screen. My Privacy setting for Cookies and web site data is "Allow from web sites I visit". This is the default setting in Safari and I expect Google Sign-in to work in Private mode too.

There is a much bigger problem we face with Google Sign-in on Safari when the login is made on the domain after which user is redirected to a subdomain where we need to verify if user is signed in. Even if cookie_policy is correctly set to https://domain.com, when we call auth2.isSignedIn.get() or .listen() in the subdomain the response is that the user is not signed in on Safari. If Privacy-> Cookies and web site data is "Always allow" then auth2.isSignedIn.get gives a positive result. The same code works perfectly on Chrome, Opera and Firefox. Facebook login works for such a scenario perfectly even on Safari. May anyone provide a working sample for the domain/subdomain scenario that works on Safari with default Privacy settings?