Skip to content

Commit

Permalink
When using Google auth for admin, always prompt for which account.
Browse files Browse the repository at this point in the history
This makes it a bit easier to switch between accounts if you have
multiple, but happen to only be signed into 1.
  • Loading branch information
GUI committed Jun 16, 2017
1 parent 4147e36 commit c11ea16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api-umbrella/web-app/config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c11ea16

Please sign in to comment.