From c11ea1666a0b0287e1764ed031e42342a987e795 Mon Sep 17 00:00:00 2001 From: Nick Muerdter Date: Fri, 16 Jun 2017 14:01:04 -0600 Subject: [PATCH] When using Google auth for admin, always prompt for which account. This makes it a bit easier to switch between accounts if you have multiple, but happen to only be signed into 1. --- src/api-umbrella/web-app/config/initializers/devise.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api-umbrella/web-app/config/initializers/devise.rb b/src/api-umbrella/web-app/config/initializers/devise.rb index 807f14bf4..adbc19090 100644 --- a/src/api-umbrella/web-app/config/initializers/devise.rb +++ b/src/api-umbrella/web-app/config/initializers/devise.rb @@ -287,6 +287,7 @@ config.omniauth :google_oauth2, ApiUmbrellaConfig[:web][:admin][:auth_strategies][:google][:client_id], ApiUmbrellaConfig[:web][:admin][:auth_strategies][:google][:client_secret], + :prompt => "select_account", :scope => "userinfo.email" when "ldap" require "omniauth-ldap"