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

adapt setting definition

ulferts0a40d7b25722
diff --git a/modules/openid_connect/lib/open_project/openid_connect/engine.rb b/modules/openid_connect/lib/open_project/openid_connect/engine.rb
index 49445478df6..3af78d2a767 100644
--- a/modules/openid_connect/lib/open_project/openid_connect/engine.rb
+++ b/modules/openid_connect/lib/open_project/openid_connect/engine.rb
@@ -45,7 +45,7 @@ module OpenProject::OpenIDConnect
initializer "openid_connect.configure" do
::Settings::Definition.add(
- OpenProject::OpenIDConnect::CONFIG_KEY, value: {}, writable: false
+ OpenProject::OpenIDConnect::CONFIG_KEY, default: {}, writable: false
)
end
@@ -57,7 +57,7 @@ module OpenProject::OpenIDConnect
SecureHeaders::Configuration.default.cookies[:samesite][:lax] = false
# Need to reload the secure_headers config to
# avoid having set defaults (e.g. https) when changing the cookie values
- load Rails.root + 'config/initializers/secure_headers.rb'
+ load Rails.root.join("config/initializers/secure_headers.rb")
end
end