]> source.dussan.org Git - sonarqube.git/commit
SONAR-6867: Add a new APIs UserDetails.getUserId()/setUserId(String userId)
authorSulabh Upadhyay <suupadhy@microsoft.com>
Thu, 24 Sep 2015 12:23:26 +0000 (17:53 +0530)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 5 Oct 2015 19:50:37 +0000 (21:50 +0200)
commitdc5cb124d46e90c3823f47573ca25c808507d14c
tree1cd13f49e3692ed264d63c20e459fb8993bdadef
parent0ce77c4e398676668288ad4e065a1ff7a1e24cf1
SONAR-6867: Add a new APIs UserDetails.getUserId()/setUserId(String userId)
to allow plugins to pass userId information to SonarQube

setUserId(String userId) and getUserId () are added to UserDetails.

Testing
 1. Unit test for UserDetails
 2. Verification of following scenarios :
    a. Plugin (e.g. LDAP) is dependent on older sonarqube plugins apis
       ( < 5.2) and the plugin is being used in SonarQube 5.2 server
    b. Plugin is dependent on SonarQube 5.2 plugin apis and userId is not
       being populated in UserDetails along with userName and Email .
    c. Plugin is dependent on SonarQube 5.2 plugin apis and userId is
       also being populated by the plugin in UserDetails along with
       userName and Email.
server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb
sonar-plugin-api/src/main/java/org/sonar/api/security/UserDetails.java
sonar-plugin-api/src/test/java/org/sonar/api/security/UserDetailsTest.java [new file with mode: 0644]