Skip to content

Commit

Permalink
add omniauth-rails_csrf_protection
Browse files Browse the repository at this point in the history
  • Loading branch information
rawOrlando committed Mar 5, 2024
1 parent 1745d80 commit 18c8885
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 43 deletions.
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ gem 'sitemap_generator'
gem 'devise_ldap_authenticatable'

# shib login
gem 'omniauth' # , '1.9.1'
gem 'omniauth' #, '1.9.1'
gem 'omniauth-shibboleth'

# temp do we need this?
# fix omniauth issues
gem 'omniauth-rails_csrf_protection'

# previously prepackaged gems in ruby 2
# needed in elections, TODO: see if they are needed here
gem 'http'
Expand Down
90 changes: 48 additions & 42 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ GEM
activejob (7.0.2)
activesupport (= 7.0.2)
globalid (>= 0.3.6)
activejob-status (1.0.0)
activejob-status (1.0.1)
activejob (>= 6.0)
activesupport (>= 6.0)
activemodel (7.0.2)
Expand Down Expand Up @@ -165,11 +165,11 @@ GEM
builder (3.2.4)
byebug (11.1.3)
cancancan (3.5.0)
capybara (3.39.2)
capybara (3.40.0)
addressable
matrix
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
nokogiri (~> 1.11)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
Expand All @@ -190,7 +190,7 @@ GEM
ssrf_filter (~> 1.0)
childprocess (4.1.0)
clipboard-rails (1.7.1)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
crass (1.0.6)
daemons (1.4.1)
database_cleaner (2.0.2)
Expand All @@ -217,14 +217,14 @@ GEM
devise_ldap_authenticatable (0.8.7)
devise (>= 3.4.1)
net-ldap (>= 0.16.0)
diff-lcs (1.5.0)
diff-lcs (1.5.1)
diffy (3.4.2)
docile (1.4.0)
domain_name (0.6.20231109)
domain_name (0.6.20240107)
erubi (1.12.0)
eventmachine (1.2.7)
execjs (2.9.1)
factory_bot (6.4.5)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
factory_bot_rails (6.4.3)
factory_bot (~> 6.4)
Expand Down Expand Up @@ -269,11 +269,12 @@ GEM
tilt (>= 1.2)
hashdiff (1.1.0)
hashie (5.0.0)
http (5.1.1)
http (5.2.0)
addressable (~> 2.8)
base64 (~> 0.1)
http-cookie (~> 1.0)
http-form_data (~> 2.2)
llhttp-ffi (~> 0.4.0)
llhttp-ffi (~> 0.5.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
http-form_data (2.3.0)
Expand All @@ -287,7 +288,7 @@ GEM
activesupport (>= 3.2.18)
faraday (>= 0.9)
json
iiif_manifest (1.3.1)
iiif_manifest (1.4.0)
activesupport (>= 4)
image_processing (1.12.2)
mini_magick (>= 4.9.5, < 5)
Expand All @@ -300,7 +301,8 @@ GEM
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.7.1)
jwt (2.7.1)
jwt (2.8.1)
base64
kaminari (1.2.2)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.2.2)
Expand All @@ -322,7 +324,7 @@ GEM
railties (>= 4.2.0)
legato (0.7.0)
multi_json
llhttp-ffi (0.4.0)
llhttp-ffi (0.5.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
loofah (2.22.0)
Expand All @@ -333,31 +335,31 @@ GEM
net-imap
net-pop
net-smtp
marcel (1.0.2)
marcel (1.0.4)
matrix (0.4.2)
method_source (1.0.0)
mini_magick (4.12.0)
mini_mime (1.1.5)
minitar (0.9)
minitest (5.20.0)
minitest (5.22.2)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.3.0)
mysql2 (0.5.5)
net-imap (0.4.9)
multipart-post (2.4.0)
mysql2 (0.5.6)
net-imap (0.4.10)
date
net-protocol
net-ldap (0.19.0)
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.4.0)
net-smtp (0.4.0.1)
net-protocol
nio4r (2.7.0)
nokogiri (1.16.0-aarch64-linux)
nokogiri (1.16.2-aarch64-linux)
racc (~> 1.4)
nokogiri (1.16.0-x86_64-linux)
nokogiri (1.16.2-x86_64-linux)
racc (~> 1.4)
oauth2 (2.0.9)
faraday (>= 0.17.3, < 3.0)
Expand All @@ -370,6 +372,9 @@ GEM
hashie (>= 3.4.6)
rack (>= 2.2.3)
rack-protection
omniauth-rails_csrf_protection (1.0.1)
actionpack (>= 4.2)
omniauth (~> 2.0)
omniauth-shibboleth (1.3.0)
omniauth (>= 1.0.0)
open4 (1.3.4)
Expand All @@ -381,15 +386,15 @@ GEM
activerecord (>= 5.2)
request_store (~> 1.1)
parallel (1.24.0)
parser (3.2.2.4)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
popper_js (1.16.1)
public_suffix (5.0.4)
puma (6.4.1)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rack (2.2.8.1)
rack-protection (3.2.0)
base64 (>= 0.1.0)
rack (~> 2.2, >= 2.2.4)
Expand Down Expand Up @@ -426,19 +431,19 @@ GEM
rainbow (3.1.1)
rake (13.1.0)
redcarpet (3.6.0)
regexp_parser (2.8.3)
regexp_parser (2.9.0)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
request_store (1.5.1)
request_store (1.6.0)
rack (>= 1.4)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
retriable (3.1.2)
rexml (3.2.6)
riiif (2.4.0)
riiif (2.5.0)
deprecation (>= 1.0.0)
iiif-image-api (>= 0.1.0)
railties (>= 4.2, < 8)
Expand All @@ -454,23 +459,23 @@ GEM
rsolr (2.5.0)
builder (>= 2.1.2)
faraday (>= 0.9, < 3, != 2.0.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-rails (6.1.0)
rspec-support (~> 3.13.0)
rspec-rails (6.1.1)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-core (~> 3.12)
rspec-expectations (~> 3.12)
rspec-mocks (~> 3.12)
rspec-support (~> 3.12)
rspec-support (3.12.1)
rspec-support (3.13.1)
rubocop (1.28.2)
parallel (~> 1.10)
parser (>= 3.1.0.0)
Expand All @@ -480,8 +485,8 @@ GEM
rubocop-ast (>= 1.17.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.1)
parser (>= 3.3.0.4)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
Expand All @@ -491,9 +496,9 @@ GEM
rubocop (>= 1.7.0, < 2.0)
rubocop-rspec (2.11.1)
rubocop (~> 1.19)
ruby-oembed (0.16.1)
ruby-oembed (0.17.0)
ruby-progressbar (1.13.0)
ruby-vips (2.2.0)
ruby-vips (2.2.1)
ffi (~> 1.12)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
Expand All @@ -512,7 +517,7 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
signet (0.18.0)
signet (0.19.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
Expand Down Expand Up @@ -557,7 +562,7 @@ GEM
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3)
thor (1.3.0)
thor (1.3.1)
tilt (2.3.0)
timeout (0.4.1)
tophat (2.3.1)
Expand All @@ -575,7 +580,7 @@ GEM
underscore-rails (1.8.3)
unicode-display_width (2.5.0)
version_gem (1.1.3)
view_component (3.9.0)
view_component (3.11.0)
activesupport (>= 5.2.0, < 8.0)
concurrent-ruby (~> 1.0)
method_source (~> 1.0)
Expand All @@ -599,7 +604,7 @@ GEM
rexml
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.12)
zeitwerk (2.6.13)

PLATFORMS
aarch64-linux
Expand Down Expand Up @@ -629,6 +634,7 @@ DEPENDENCIES
ladle
mysql2
omniauth
omniauth-rails_csrf_protection
omniauth-shibboleth
puma
rails (= 7.0.2)
Expand Down

0 comments on commit 18c8885

Please sign in to comment.