Skip to content

Commit

Permalink
Move prompt param from url to authorize params
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Jun 1, 2022
1 parent d55842a commit 98b78ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/initializers/office365.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Office365 < OmniAuth::Strategies::OAuth2
option :name, 'office365'

option :client_options,
site: 'https://login.microsoftonline.com/?prompt=select_account',
site: 'https://login.microsoftonline.com/',
authorize_url: '/common/oauth2/authorize',
token_url: '/common/oauth2/token'

Expand All @@ -25,6 +25,7 @@ def authorize_params
end

params[:scope] ||= DEFAULT_SCOPE
params[:prompt] = 'select_account'
end
end

Expand Down

0 comments on commit 98b78ee

Please sign in to comment.