]> source.dussan.org Git - sonarqube.git/commit
SONAR-12531 drop usage of UserIdentity#getLogin and UserIdentity#setLogin (#2139)
authorJacek <jacek.poreda@sonarsource.com>
Thu, 17 Oct 2019 11:54:28 +0000 (13:54 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 17 Oct 2019 18:21:03 +0000 (20:21 +0200)
commitcaf0309d6e964af9f7bfd0b34e7b04c394bcc867
tree031366b35151ab6cc2cb1bd1b75f72b43f8588d9
parent08d2dc1e42e32e67c0f8d3932c118b2cb3ed4e17
SONAR-12531  drop usage of UserIdentity#getLogin and UserIdentity#setLogin (#2139)

* remove login generation strategy
* add migration to remove gh login strategy + code review fixes
* support same login for new user and update login for SQ authority
33 files changed:
server/sonar-auth-github/src/main/java/org/sonar/auth/github/GitHubSettings.java
server/sonar-auth-github/src/main/java/org/sonar/auth/github/UserIdentityFactoryImpl.java
server/sonar-auth-github/src/main/java/org/sonar/auth/github/UserIdentityGenerator.java [deleted file]
server/sonar-auth-github/src/test/java/org/sonar/auth/github/GitHubIdentityProviderTest.java
server/sonar-auth-github/src/test/java/org/sonar/auth/github/GitHubModuleTest.java
server/sonar-auth-github/src/test/java/org/sonar/auth/github/GitHubSettingsTest.java
server/sonar-auth-github/src/test/java/org/sonar/auth/github/IntegrationTest.java
server/sonar-auth-github/src/test/java/org/sonar/auth/github/UserIdentityFactoryImplTest.java
server/sonar-auth-gitlab/src/test/java/org/sonar/auth/gitlab/IntegrationTest.java
server/sonar-auth-saml/src/main/java/org/sonar/auth/saml/SamlIdentityProvider.java
server/sonar-auth-saml/src/test/java/org/sonar/auth/saml/SamlIdentityProviderTest.java
server/sonar-db-dao/src/testFixtures/java/org/sonar/db/user/UserDbTester.java
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v80/DbVersion80.java
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v80/RemoveGitHubLoginGenerationStrategyProperty.java [new file with mode: 0644]
server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v80/DbVersion80Test.java
server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v80/RemoveGitHubLoginGenerationStrategyPropertyTest.java [new file with mode: 0644]
server/sonar-db-migration/src/test/resources/org/sonar/server/platform/db/migration/version/v80/RemoveGitHubLoginGenerationStrategyPropertyTest/schema.sql [new file with mode: 0644]
server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/CredentialsExternalAuthentication.java
server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/HttpHeadersAuthentication.java
server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/UserRegistrarImpl.java
server/sonar-webserver-auth/src/main/java/org/sonar/server/user/UserUpdater.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/BaseContextFactoryTest.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/CredentialsExternalAuthenticationTest.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/HttpHeadersAuthenticationTest.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/InitFilterTest.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/OAuth2CallbackFilterTest.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/OAuth2ContextFactoryTest.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/TestUserRegistrar.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/UserRegistrarImplOrgMembershipSyncTest.java
server/sonar-webserver-auth/src/test/java/org/sonar/server/authentication/UserRegistrarImplTest.java
server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/UpdateLoginActionTest.java
sonar-plugin-api/src/main/java/org/sonar/api/server/authentication/UserIdentity.java
sonar-plugin-api/src/test/java/org/sonar/api/server/authentication/UserIdentityTest.java