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.
1 parent 74a15ad commit 80d75bfCopy full SHA for 80d75bf
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