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
4b13ca4d
Commit
4b13ca4d
authored
Jul 13, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Normalize plugin loading
parent
85a94784
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
config/initializers/omniauth.rb
config/initializers/omniauth.rb
+3
-10
No files found.
config/initializers/omniauth.rb
View file @
4b13ca4d
...
...
@@ -14,11 +14,6 @@ if Gitlab::LDAP::Config.enabled?
end
end
if
Gitlab
.
config
.
kerberos
.
enabled
require
'omniauth/strategies/kerberos_spnego'
Gitlab
.
config
.
omniauth
.
providers
<<
{
'name'
=>
'kerberos_spnego'
}
end
OmniAuth
.
config
.
full_host
=
Settings
.
gitlab
[
'base_url'
]
OmniAuth
.
config
.
allowed_request_methods
=
[
:post
]
# In case of auto sign-in, the GET method is used (users don't get to click on a button)
...
...
@@ -28,9 +23,7 @@ OmniAuth.config.before_request_phase do |env|
end
if
Gitlab
.
config
.
omniauth
.
enabled
Gitlab
.
config
.
omniauth
.
providers
.
each
do
|
provider
|
if
provider
[
'name'
]
==
'kerberos'
require
'omniauth-kerberos'
end
end
provider_names
=
Gitlab
.
config
.
omniauth
.
providers
.
map
{
|
p
|
p
[
'name'
]
}
require
'omniauth-kerberos'
if
provider_names
.
include?
(
'kerberos'
)
require
'omniauth/strategies/kerberos_spnego'
if
provider_names
.
include?
(
'kerberos_spnego'
)
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