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
0fa62bda
Commit
0fa62bda
authored
Jul 18, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explain SPNEGO more
parent
9bc27748
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
app/controllers/omniauth_kerberos_spnego_controller.rb
app/controllers/omniauth_kerberos_spnego_controller.rb
+10
-0
No files found.
app/controllers/omniauth_kerberos_spnego_controller.rb
View file @
0fa62bda
...
@@ -13,6 +13,16 @@ class OmniauthKerberosSpnegoController < ApplicationController
...
@@ -13,6 +13,16 @@ class OmniauthKerberosSpnegoController < ApplicationController
return
return
end
end
# When the browser is Kerberos-aware, this response will make it try to
# get a Kerberos ticket and present it to us via an SPNEGO token.
#
# When the browser does not know Kerberos, or if it tried to
# authenticate with Kerberos but failed, it shows the special 'Kerberos
# denied' 401 page to the user.
#
# We cannot redirect the user to the sign-in page because we do not know
# when the browser has given up.
#
headers
[
'Www-Authenticate'
]
=
spnego_challenge
headers
[
'Www-Authenticate'
]
=
spnego_challenge
render
'errors/kerberos_denied.html.haml'
,
layout:
'errors'
,
status:
401
render
'errors/kerberos_denied.html.haml'
,
layout:
'errors'
,
status:
401
end
end
...
...
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