SonarCommunity/sonar-cas — pull request #3 by tjormola (2013-03-18 20:25:44+00:00)
Title: Enable populating user name and email with SAML 1.1 attributes

It's possible to pass arbitrary attributes with the SAML 1.1 ticket.
Attributes are often used to pass the name and e-mail address of the
user to the application. This patch enables to configure which
attributes match the name and e-mail data and populates the user details
with the values found in the corresponding SAML attributes.

This patch requires b101991d675999052039c3e7a2745c7470c78c28 first to be applied in order to work correctly. Without that patch and using the functionality of this patch, the Sonar users will be named to match the real name defined in the user details, not the CAS account name the user used when authenticating with CAS. Thus Sonar and CAS user accounts don't match even though the user is authenticated ok.