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

fix oidc attr map keys for email, first name, last name

Markus Kahla486706ec99e
diff --git a/modules/openid_connect/app/services/openid_connect/configuration_mapper.rb b/modules/openid_connect/app/services/openid_connect/configuration_mapper.rb
index 4f61d780020..554754d9950 100644
--- a/modules/openid_connect/app/services/openid_connect/configuration_mapper.rb
+++ b/modules/openid_connect/app/services/openid_connect/configuration_mapper.rb
@@ -62,9 +62,9 @@ module OpenIDConnect
"end_session_endpoint" => extract_url(options, "end_session_endpoint"),
"jwks_uri" => extract_url(options, "jwks_uri"),
"mapping_login" => options.dig("attribute_map", "login"),
- "mapping_mail" => options.dig("attribute_map", "email"),
- "mapping_firstname" => options.dig("attribute_map", "first_name"),
- "mapping_lastname" => options.dig("attribute_map", "last_name"),
+ "mapping_email" => options.dig("attribute_map", "email"),
+ "mapping_first_name" => options.dig("attribute_map", "first_name"),
+ "mapping_last_name" => options.dig("attribute_map", "last_name"),
"mapping_admin" => options.dig("attribute_map", "admin")
}.compact
end