{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-javascript-client/issues/215","repository_url":"https://api.github.com/repos/google/google-api-javascript-client","labels_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/215/comments","events_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/215/events","html_url":"https://github.com/google/google-api-javascript-client/issues/215","id":131660229,"number":215,"title":"gapi.auth.authorize does not work on safari","user":{"login":"maelcaldas","id":1580098,"avatar_url":"https://avatars.githubusercontent.com/u/1580098?v=3","gravatar_id":"","url":"https://api.github.com/users/maelcaldas","html_url":"https://github.com/maelcaldas","followers_url":"https://api.github.com/users/maelcaldas/followers","following_url":"https://api.github.com/users/maelcaldas/following{/other_user}","gists_url":"https://api.github.com/users/maelcaldas/gists{/gist_id}","starred_url":"https://api.github.com/users/maelcaldas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maelcaldas/subscriptions","organizations_url":"https://api.github.com/users/maelcaldas/orgs","repos_url":"https://api.github.com/users/maelcaldas/repos","events_url":"https://api.github.com/users/maelcaldas/events{/privacy}","received_events_url":"https://api.github.com/users/maelcaldas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-05T14:36:29Z","updated_at":"2016-03-05T15:09:53Z","closed_at":null,"body":"Call to 'gapi.auth.authorize' on Safari Version 9.0.3 (10601.4.4) does NOT open the popup and call the callback.\r\n\r\nE.g. In the code below:\r\n`\r\n  \t function handleAuthResult(authToken) {\r\n  \t \talert('It worked!!')\r\n  \t }\r\n\r\n\t function initGoogleClientLogin() {\r\n    \t  gapi.auth.init(function() {\r\n    \t  \tgapi.auth.authorize({client_id: 'YOUR_CLIENT_ID', scope: 'email profile'}, handleAuthResult);\r\n    \t  });\r\n   \t };\r\n\r\n`\r\nIs expected the alert popup appears after the flow complete. It worked on Chrome and Firefox, but not on Safari (Version 9.0.3 - 10601.4.4)"},"comment":{"url":"https://api.github.com/repos/google/google-api-javascript-client/issues/comments/192669780","html_url":"https://github.com/google/google-api-javascript-client/issues/215#issuecomment-192669780","issue_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/215","id":192669780,"user":{"login":"maelcaldas","id":1580098,"avatar_url":"https://avatars.githubusercontent.com/u/1580098?v=3","gravatar_id":"","url":"https://api.github.com/users/maelcaldas","html_url":"https://github.com/maelcaldas","followers_url":"https://api.github.com/users/maelcaldas/followers","following_url":"https://api.github.com/users/maelcaldas/following{/other_user}","gists_url":"https://api.github.com/users/maelcaldas/gists{/gist_id}","starred_url":"https://api.github.com/users/maelcaldas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maelcaldas/subscriptions","organizations_url":"https://api.github.com/users/maelcaldas/orgs","repos_url":"https://api.github.com/users/maelcaldas/repos","events_url":"https://api.github.com/users/maelcaldas/events{/privacy}","received_events_url":"https://api.github.com/users/maelcaldas/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T15:09:53Z","updated_at":"2016-03-05T15:09:53Z","body":"The problem occurs on safari no matter if the action is fired by a button click or onLoad. The code is just for example purposes..."}}