Commit 257ac6ea authored by Rémy Coutable's avatar Rémy Coutable

Extract EE-specific lines to EE::Gitlab::Auth::Saml::Config

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 0976623a
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
...@@ -2,6 +2,8 @@ module Gitlab ...@@ -2,6 +2,8 @@ module Gitlab
module Auth module Auth
module Saml module Saml
class Config class Config
prepend ::EE::Gitlab::Auth::Saml::Config
class << self class << self
def options def options
Gitlab::Auth::OAuth::Provider.config_for('saml') Gitlab::Auth::OAuth::Provider.config_for('saml')
...@@ -15,10 +17,6 @@ module Gitlab ...@@ -15,10 +17,6 @@ module Gitlab
options[:external_groups] options[:external_groups]
end end
def required_groups
Array(options[:required_groups])
end
def admin_groups def admin_groups
options[:admin_groups] options[:admin_groups]
end end
......
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