{"action":"closed","issue":{"url":"https://api.github.com/repos/zquestz/omniauth-google-oauth2/issues/213","labels_url":"https://api.github.com/repos/zquestz/omniauth-google-oauth2/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/zquestz/omniauth-google-oauth2/issues/213/comments","events_url":"https://api.github.com/repos/zquestz/omniauth-google-oauth2/issues/213/events","html_url":"https://github.com/zquestz/omniauth-google-oauth2/issues/213","id":119365549,"number":213,"title":"failure action is not getting triggered when someone tried email domain which is not whitelisted","user":{"login":"aruprakshit","id":3428463,"avatar_url":"https://avatars.githubusercontent.com/u/3428463?v=3","gravatar_id":"","url":"https://api.github.com/users/aruprakshit","html_url":"https://github.com/aruprakshit","followers_url":"https://api.github.com/users/aruprakshit/followers","following_url":"https://api.github.com/users/aruprakshit/following{/other_user}","gists_url":"https://api.github.com/users/aruprakshit/gists{/gist_id}","starred_url":"https://api.github.com/users/aruprakshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aruprakshit/subscriptions","organizations_url":"https://api.github.com/users/aruprakshit/orgs","repos_url":"https://api.github.com/users/aruprakshit/repos","events_url":"https://api.github.com/users/aruprakshit/events{/privacy}","received_events_url":"https://api.github.com/users/aruprakshit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-29T15:35:18Z","updated_at":"2016-01-16T21:24:13Z","closed_at":"2016-01-16T21:24:13Z","body":"In my *config/initializers/devise.rb*, I have : \r\n\r\n```ruby\r\n  config.omniauth(\r\n    :google_oauth2, \r\n    Rails.application.secrets.google_oauth_client_id,\r\n    Rails.application.secrets.google_oauth_secret_key,\r\n    scope: 'email,profile',\r\n    prompt: \"select_account\",\r\n    hd: 'gmail.com'\r\n  )\r\n```\r\n\r\nFor testing, I am using some testing@gmail . When hitting the google signin url from app getting the below log : \r\n\r\n```sh\r\nStarted GET \"/users/auth/google_oauth2\" for ::1 at 2015-11-29 20:55:07 +0530\r\nI, [2015-11-29T20:55:07.403011 #27291]  INFO -- omniauth: (google_oauth2) Request phase initiated.\r\n```\r\n\r\nNow, I gave valid email and password, so signed in happened, but google didn't let me go further as the email domain is not the part of the whitelisted ones and it stays to the google page. But I am not getting any response back to my app, at-least from Rails log nothing is visible. I am expecting `failing` action to get triggered on this occasion."}}