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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
reset saml config to make sure it's correct
Markus Kahlcec5b38d33b6
diff --git a/modules/auth_saml/lib/open_project/auth_saml/engine.rb b/modules/auth_saml/lib/open_project/auth_saml/engine.rbindex e42b538f832..63817def80e 100644--- a/modules/auth_saml/lib/open_project/auth_saml/engine.rb+++ b/modules/auth_saml/lib/open_project/auth_saml/engine.rb@@ -8,6 +8,11 @@ module OpenProjectendend+ def self.reload_configuration!+ @saml_settings = nil+ RequestStore.delete :openproject_omniauth_saml_provider+ end+### Loads the settings once to avoid accessing the file in each requestdef self.load_global_settings!diff --git a/modules/auth_saml/spec/lib/open_project/auth_saml_spec.rb b/modules/auth_saml/spec/lib/open_project/auth_saml_spec.rbindex 249c21477c2..3f940646c69 100644--- a/modules/auth_saml/spec/lib/open_project/auth_saml_spec.rb+++ b/modules/auth_saml/spec/lib/open_project/auth_saml_spec.rb@@ -2,6 +2,14 @@ require File.dirname(__FILE__) + '/../../spec_helper'require 'open_project/auth_saml'describe OpenProject::AuthSaml do+ before do+ OpenProject::AuthSaml.reload_configuration!+ end++ after do+ OpenProject::AuthSaml.reload_configuration!+ end+describe ".configuration" dolet(:config) do# the `configuration` method is cached to avoid