Commit 85a94784 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Fix Kerberos 401 page

parent 76633c04
...@@ -78,6 +78,11 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController ...@@ -78,6 +78,11 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
handle_omniauth handle_omniauth
end end
def kerberos_spnego
oauth['provider'] = 'kerberos'
handle_omniauth
end
private private
def handle_omniauth def handle_omniauth
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
%h1 401 %h1 401
%h3 Kerberos SPNEGO authentication failed %h3 Kerberos SPNEGO authentication failed
%hr %hr
%p Return to the %p
Return to the
= succeed "." do = succeed "." do
= link_to new_user_session_path, 'sign-in page' = link_to 'sign-in page', new_user_session_path
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment