Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ gem "bootsnap", require: false

gem "devise", "~> 5.0"
gem "skylight"
gem "omniauth-saml", "~> 2.2"
gem "omniauth-rails_csrf_protection", "~> 1.0"
gem 'omniauth'
gem 'omniauth-saml'
gem 'omniauth-rails_csrf_protection'
gem 'repost'

gem 'ldap_lookup', '~> 2.1.0'
Expand Down
7 changes: 4 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ GEM
omniauth-rails_csrf_protection (1.0.2)
actionpack (>= 4.2)
omniauth (~> 2.0)
omniauth-saml (2.2.3)
omniauth-saml (2.2.5)
omniauth (~> 2.1)
ruby-saml (~> 1.18)
orm_adapter (0.5.0)
Expand Down Expand Up @@ -431,8 +431,9 @@ DEPENDENCIES
kaminari
ldap_lookup (~> 2.1.0)
letter_opener_web
omniauth-rails_csrf_protection (~> 1.0)
omniauth-saml (~> 2.2)
omniauth
omniauth-rails_csrf_protection
omniauth-saml
ostruct (~> 0.6.3)
pg (~> 1.1)
pry
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/users/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
skip_before_action :verify_authenticity_token, only: :saml
before_action :set_user
skip_before_action :verify_authenticity_token, only: [:saml, :failure]

Check failure

Code scanning / CodeQL

CSRF protection weakened or disabled High

Potential CSRF vulnerability due to forgery protection being disabled or weakened.
before_action :set_user, only: :saml
attr_reader :user, :service

def saml
Expand Down
Loading
Loading