Skip to content

Commit

Permalink
Activate method post (#441)
Browse files Browse the repository at this point in the history
* Activate lux menu bar method post
Add method post in the shared login partial

Co-authored-by: Jane Sandberg <[email protected]>

* Update omniauth-cas related to pulibrary/dacs_handbook#192

Co-authored-by: Jane Sandberg <[email protected]>

---------

Co-authored-by: Jane Sandberg <[email protected]>
  • Loading branch information
christinach and sandbergja authored Jun 20, 2024
1 parent 2ac2119 commit 3d791f6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
27 changes: 16 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ GEM
ast (2.4.2)
autoprefixer-rails (10.4.16.0)
execjs (~> 2)
base64 (0.2.0)
bcrypt (3.1.20)
bcrypt_pbkdf (1.1.0)
blacklight (8.1.0)
Expand Down Expand Up @@ -207,7 +208,7 @@ GEM
matrix (0.4.2)
method_source (1.0.0)
mini_mime (1.1.5)
mini_portile2 (2.8.6)
mini_portile2 (2.8.7)
minitest (5.22.2)
modernizr-rails (2.7.1)
mutex_m (0.2.0)
Expand All @@ -224,17 +225,18 @@ GEM
net-protocol
net-ssh (7.2.1)
nio4r (2.7.0)
nokogiri (1.16.5)
nokogiri (1.16.6)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
normalize-rails (3.0.3)
omniauth (1.9.2)
omniauth (2.1.2)
hashie (>= 3.4.6)
rack (>= 1.6.2, < 3)
omniauth-cas (2.0.0)
addressable (~> 2.3)
nokogiri (~> 1.5)
omniauth (~> 1.2)
rack (>= 2.2.3)
rack-protection
omniauth-cas (3.0.0)
addressable (~> 2.8)
nokogiri (~> 1.12)
omniauth (~> 2.1)
orm_adapter (0.5.0)
ostruct (0.6.0)
parallel (1.24.0)
Expand All @@ -249,11 +251,14 @@ GEM
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (>= 0.13, < 0.15)
public_suffix (5.0.4)
public_suffix (5.1.1)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8.1)
racc (1.8.0)
rack (2.2.9)
rack-protection (3.2.0)
base64 (>= 0.1.0)
rack (~> 2.2, >= 2.2.4)
rack-proxy (0.7.7)
rack
rack-test (2.1.0)
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_account.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</button>
<ul class="dropdown-menu" role="menu">
<li>
<%= link_to t('blacklight.header_links.login'), user_cas_omniauth_authorize_path %>
<%= link_to t('blacklight.header_links.login'), user_cas_omniauth_authorize_path, method: 'post' %>
</li>
<li>
<%= link_to t('blacklight.header_links.search_history'), blacklight.search_history_path %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_header_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]"></lux-menu-bar>
<% else %>
<lux-menu-bar type="main-menu" active="All" :menu-items="[
{name: '<%= t('blacklight.header_links.login') %>', component: '<%= t('blacklight.header_links.login') %>', href: '<%= user_cas_omniauth_authorize_path %>'}
{name: '<%= t('blacklight.header_links.login') %>', component: '<%= t('blacklight.header_links.login') %>', href: '<%= user_cas_omniauth_authorize_path %>', method: 'post'}
]"></lux-menu-bar>
<% end %>
<% end %>
Expand Down

0 comments on commit 3d791f6

Please sign in to comment.