We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74a15ad + 80d75bf commit 451f7ecCopy full SHA for 451f7ec
lib/omniauth/strategies/oauth2.rb
@@ -49,9 +49,7 @@ def request_phase
49
end
50
51
def authorize_params
52
- if options.authorize_params[:state].to_s.empty?
53
- options.authorize_params[:state] = SecureRandom.hex(24)
54
- end
+ options.authorize_params[:state] = SecureRandom.hex(24)
55
params = options.authorize_params.merge(options.authorize_options.inject({}){|h,k| h[k.to_sym] = options[k] if options[k]; h})
56
if OmniAuth.config.test_mode
57
@env ||= {}
0 commit comments