Skip to content
Snippets Groups Projects

Fix signin with OmniAuth providers

Merged Douwe Maan requested to merge fix-omniauth-signin into master
+ 10
55
Compare changes
  • Side-by-side
  • Inline
Files
@@ -16,7 +16,7 @@ OmniAuth.config.allowed_request_methods = [:post]
@@ -16,7 +16,7 @@ OmniAuth.config.allowed_request_methods = [:post]
#In case of auto sign-in, the GET method is used (users don't get to click on a button)
#In case of auto sign-in, the GET method is used (users don't get to click on a button)
OmniAuth.config.allowed_request_methods << :get if Gitlab.config.omniauth.auto_sign_in_with_provider.present?
OmniAuth.config.allowed_request_methods << :get if Gitlab.config.omniauth.auto_sign_in_with_provider.present?
OmniAuth.config.before_request_phase do |env|
OmniAuth.config.before_request_phase do |env|
OmniAuth::RequestForgeryProtection.new(env).call
OmniAuth::RequestForgeryProtection.call(env)
end
end
if Gitlab.config.omniauth.enabled
if Gitlab.config.omniauth.enabled
Loading