Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
85a94784
Commit
85a94784
authored
Jul 13, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Kerberos 401 page
parent
76633c04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
app/controllers/omniauth_callbacks_controller.rb
app/controllers/omniauth_callbacks_controller.rb
+5
-0
app/views/errors/kerberos_denied.html.haml
app/views/errors/kerberos_denied.html.haml
+3
-2
No files found.
app/controllers/omniauth_callbacks_controller.rb
View file @
85a94784
...
...
@@ -78,6 +78,11 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
handle_omniauth
end
def
kerberos_spnego
oauth
[
'provider'
]
=
'kerberos'
handle_omniauth
end
private
def
handle_omniauth
...
...
app/views/errors/kerberos_denied.html.haml
View file @
85a94784
...
...
@@ -2,6 +2,7 @@
%h1
401
%h3
Kerberos SPNEGO authentication failed
%hr
%p
Return to the
%p
Return to the
=
succeed
"."
do
=
link_to
new_user_session_path
,
'sign-in page'
=
link_to
'sign-in page'
,
new_user_session_path
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment