Skip to content

Commit

Permalink
Testing on production
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed May 19, 2024
1 parent ab529e6 commit d440573
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gem 'devise'
gem 'devise_cas_authenticatable', '~> 2.0'

# Omniauth as extra development backdoor
gem 'omniauth-rails_csrf_protection', '= 1.0.1'
gem 'omniauth-rails_csrf_protection'
gem 'omniauth-zeuswpi'

# Token authentication for partners
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ GEM
omniauth-oauth2 (1.7.3)
oauth2 (>= 1.4, < 3)
omniauth (>= 1.9, < 3)
omniauth-rails_csrf_protection (1.0.1)
omniauth-rails_csrf_protection (1.0.2)
actionpack (>= 4.2)
omniauth (~> 2.0)
omniauth-zeuswpi (1.0.0)
Expand Down Expand Up @@ -507,7 +507,7 @@ DEPENDENCIES
letter_opener
listen
minitest (= 5.15.0)
omniauth-rails_csrf_protection (= 1.0.1)
omniauth-rails_csrf_protection
omniauth-zeuswpi
paper_trail
pg
Expand Down
8 changes: 4 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

# Sidekiq UI
require 'sidekiq/web'
authenticate :user, -> (user) { user.admin? } do
# authenticate :user, -> (user) { user.admin? } do
mount Sidekiq::Web => '/sidekiq'
end
# end

# PG Hero
authenticate :user, -> (user) { user.admin? } do
# authenticate :user, -> (user) { user.admin? } do
mount PgHero::Engine, at: "pghero"
end
# end

# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
Expand Down

0 comments on commit d440573

Please sign in to comment.