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
Don't set login from uid for SAML strategy
Oliver Günther6b4e1f508509
diff --git a/modules/auth_saml/lib/open_project/auth_saml/engine.rb b/modules/auth_saml/lib/open_project/auth_saml/engine.rbindex 63817def80e..b0333929701 100644--- a/modules/auth_saml/lib/open_project/auth_saml/engine.rb+++ b/modules/auth_saml/lib/open_project/auth_saml/engine.rb@@ -75,10 +75,10 @@ module OpenProjectstrategy :saml doOpenProject::AuthSaml.configuration.values.map do |h|h[:openproject_attribute_map] = Proc.new do |auth|- {- login: auth[:uid],- admin: (auth.info['admin'].to_s.downcase == "true")- }+ {}.tap do |additional|+ additional[:login] = auth.info[:login] if auth.info.key? :login+ additional[:admin] = auth.info[:admin] if auth.info.key? :admin+ endendh.symbolize_keysend