summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-02-15 21:17:20 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-03-08 23:49:30 -0500
commit5844a21a0acae08a19fa82984dcc0feb1b8777c5 (patch)
treeaff41f83b11c676df2c3a64950196c994a183151 /config/initializers
parente8cd04e831a2db36c4029f2c193fc40d2568c79e (diff)
downloadgitlab-ce-5844a21a0acae08a19fa82984dcc0feb1b8777c5.tar.gz
Use a custom Devise failure app to handle unauthenticated .zip requestsrs-issue-12944
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/12944
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/devise.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index d82cfb3ec0c..31dceaebcad 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -203,11 +203,11 @@ Devise.setup do |config|
# If you want to use other strategies, that are not supported by Devise, or
# change the failure app, you can configure them inside the config.warden block.
#
- # config.warden do |manager|
- # manager.failure_app = AnotherApp
- # manager.intercept_401 = false
- # manager.default_strategies(scope: :user).unshift :some_external_strategy
- # end
+ config.warden do |manager|
+ manager.failure_app = Gitlab::DeviseFailure
+ # manager.intercept_401 = false
+ # manager.default_strategies(scope: :user).unshift :some_external_strategy
+ end
if Gitlab::LDAP::Config.enabled?
Gitlab.config.ldap.servers.values.each do |server|