Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

add missing saml config definition

ulferts17d9d1d76e58
diff --git a/config/constants/settings/definition.rb b/config/constants/settings/definition.rb
index 44e5fad1832..12469993644 100644
--- a/config/constants/settings/definition.rb
+++ b/config/constants/settings/definition.rb
@@ -83,6 +83,7 @@ module Settings
def override_value(other_value)
if format == :hash
+ self.value = {} if value.nil?
value.deep_merge! other_value
else
self.value = other_value
diff --git a/modules/auth_saml/lib/open_project/auth_saml/engine.rb b/modules/auth_saml/lib/open_project/auth_saml/engine.rb
index bc865e84762..618950be6b7 100644
--- a/modules/auth_saml/lib/open_project/auth_saml/engine.rb
+++ b/modules/auth_saml/lib/open_project/auth_saml/engine.rb
@@ -83,6 +83,13 @@ module OpenProject
end
end
end
+
+ initializer 'auth_saml.configuration' do
+ ::Settings::Definition.add 'saml',
+ value: nil,
+ format: :hash,
+ writable: false
+ end
end
end
end