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
257ac6ea
Commit
257ac6ea
authored
May 18, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract EE-specific lines to EE::Gitlab::Auth::Saml::Config
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
0976623a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
ee/lib/ee/gitlab/auth/saml/config.rb
ee/lib/ee/gitlab/auth/saml/config.rb
+17
-0
lib/gitlab/auth/saml/config.rb
lib/gitlab/auth/saml/config.rb
+2
-4
No files found.
ee/lib/ee/gitlab/auth/saml/config.rb
0 → 100644
View file @
257ac6ea
module
EE
module
Gitlab
module
Auth
module
Saml
module
Config
extend
ActiveSupport
::
Concern
class_methods
do
def
required_groups
Array
(
options
[
:required_groups
])
end
end
end
end
end
end
end
lib/gitlab/auth/saml/config.rb
View file @
257ac6ea
...
...
@@ -2,6 +2,8 @@ module Gitlab
module
Auth
module
Saml
class
Config
prepend
::
EE
::
Gitlab
::
Auth
::
Saml
::
Config
class
<<
self
def
options
Gitlab
::
Auth
::
OAuth
::
Provider
.
config_for
(
'saml'
)
...
...
@@ -15,10 +17,6 @@ module Gitlab
options
[
:external_groups
]
end
def
required_groups
Array
(
options
[
:required_groups
])
end
def
admin_groups
options
[
:admin_groups
]
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