{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/102","labels_url":"https://api.github.com/repos/zulip/zulip/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/102/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/102/events","html_url":"https://github.com/zulip/zulip/issues/102","id":109248395,"number":102,"title":"Unable to sign in with Google auth on iOS app","user":{"login":"DazWorrall","id":398706,"avatar_url":"https://avatars.githubusercontent.com/u/398706?v=3","gravatar_id":"","url":"https://api.github.com/users/DazWorrall","html_url":"https://github.com/DazWorrall","followers_url":"https://api.github.com/users/DazWorrall/followers","following_url":"https://api.github.com/users/DazWorrall/following{/other_user}","gists_url":"https://api.github.com/users/DazWorrall/gists{/gist_id}","starred_url":"https://api.github.com/users/DazWorrall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DazWorrall/subscriptions","organizations_url":"https://api.github.com/users/DazWorrall/orgs","repos_url":"https://api.github.com/users/DazWorrall/repos","events_url":"https://api.github.com/users/DazWorrall/events{/privacy}","received_events_url":"https://api.github.com/users/DazWorrall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-01T07:58:06Z","updated_at":"2015-10-01T19:29:36Z","closed_at":null,"body":"The iOS app update which lets you specify the Zulip endpoint has been released, but I am unable to sign in using Google auth. The server logs show a generic authentication failure\r\n\r\n```\r\n==> /var/log/zulip/django.log <==\r\n2015-10-01 03:21:14,895 INFO     0.0.0.0   POST    403   5ms /api/v1/fetch_api_key (unauth via ?)\r\n\r\n==> /var/log/zulip/server.log <==\r\n2015-10-01 03:21:14,895 INFO     0.0.0.0   POST    403   5ms /api/v1/fetch_api_key (unauth via ?)\r\n\r\n==> /var/log/zulip/django.log <==\r\n2015-10-01 03:21:14,896 INFO     status=403, data={\"msg\":\"Your username or password is incorrect.\",\"reason\":\"incorrect_creds\",\"result\":\"error\"}\r\n, uid=unauth\r\n```\r\n\r\nI dont think I can point the iOS app at a development environment, so I'll try and add some extra logging to our production install to see whats going on."},"comment":{"url":"https://api.github.com/repos/zulip/zulip/issues/comments/144823782","html_url":"https://github.com/zulip/zulip/issues/102#issuecomment-144823782","issue_url":"https://api.github.com/repos/zulip/zulip/issues/102","id":144823782,"user":{"login":"DazWorrall","id":398706,"avatar_url":"https://avatars.githubusercontent.com/u/398706?v=3","gravatar_id":"","url":"https://api.github.com/users/DazWorrall","html_url":"https://github.com/DazWorrall","followers_url":"https://api.github.com/users/DazWorrall/followers","following_url":"https://api.github.com/users/DazWorrall/following{/other_user}","gists_url":"https://api.github.com/users/DazWorrall/gists{/gist_id}","starred_url":"https://api.github.com/users/DazWorrall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DazWorrall/subscriptions","organizations_url":"https://api.github.com/users/DazWorrall/orgs","repos_url":"https://api.github.com/users/DazWorrall/repos","events_url":"https://api.github.com/users/DazWorrall/events{/privacy}","received_events_url":"https://api.github.com/users/DazWorrall/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T19:29:36Z","updated_at":"2015-10-01T19:29:36Z","body":"The detail on the `AppIdentityError` exception is below - I've redacted out a lot of it so excuse that:\r\n```\r\nWrong recipient, 835904834568-<STRING1>.apps.googleusercontent.com != :\r\n{u'at_hash': u'<STRING2>',\r\n u'aud': u'835904834568-<STRING1>.apps.googleusercontent.com',\r\n u'azp': u'835904834568-<STRING3>.apps.googleusercontent.com',\r\n u'email': u'email@domain.com',\r\n u'email_verified': True,\r\n u'exp': <integer>,\r\n u'hd': u'domain.com',\r\n u'iat': <integer>,\r\n u'iss': u'accounts.google.com',\r\n u'sub': u'<integer>'}\r\n```\r\n\r\nI found [this][0] SO question but the answer there didnt help. Nothing obvious in the docs that you linked to that I can see.\r\n\r\n[0]: http://stackoverflow.com/questions/32270999/appidentityerror-wrong-recipient-while-verifying-bearer-token"}}