Skip to content

Commit

Permalink
Make people visit the log in page for mellon IAP
Browse files Browse the repository at this point in the history
You can't POST login/password to the mellon login page like
the log in modal does, you have to visit the page.

Co-authored-by: Adrian Schröter <adrian@suse.de>
  • Loading branch information
hennevogel and adrianschroeter committed Dec 14, 2023
1 parent 067c1b1 commit 020333b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/app/helpers/webui/webui_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,11 @@ def sign_up_link(css_class: nil)
end

def log_in_link(css_class: nil)
if kerberos_mode?
if CONFIG['proxy_auth_mode'] == :mellon
link_to(CONFIG['proxy_auth_login_page'], class: css_class) do
link_content('Log In', css_class, 'fa-sign-in-alt')
end
elsif kerberos_mode?
link_to(new_session_path, class: css_class) do
link_content('Log In', css_class, 'fa-sign-in-alt')
end
Expand Down

0 comments on commit 020333b

Please sign in to comment.