diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-02-03 11:39:29 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-02-04 10:10:10 +0100 |
commit | a153a7058e2890d1730d5c368689a604b6d502b0 (patch) | |
tree | e57d172826d7151d2b0c0bea49acd43c4a1e5238 /it | |
parent | 52022312cc34f18744707f25bad36d3dc585b56e (diff) | |
download | sonarqube-a153a7058e2890d1730d5c368689a604b6d502b0.tar.gz sonarqube-a153a7058e2890d1730d5c368689a604b6d502b0.zip |
SONAR-7242 Identity Provider must define a display with icon url abd background color
Diffstat (limited to 'it')
-rw-r--r-- | it/it-plugins/base-auth-plugin/src/main/java/FakeBaseIdProvider.java | 8 | ||||
-rw-r--r-- | it/it-plugins/oauth2-auth-plugin/src/main/java/FakeOAuth2IdProvider.java | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/it/it-plugins/base-auth-plugin/src/main/java/FakeBaseIdProvider.java b/it/it-plugins/base-auth-plugin/src/main/java/FakeBaseIdProvider.java index 9095523d58f..730bef971e1 100644 --- a/it/it-plugins/base-auth-plugin/src/main/java/FakeBaseIdProvider.java +++ b/it/it-plugins/base-auth-plugin/src/main/java/FakeBaseIdProvider.java @@ -20,6 +20,7 @@ import java.io.IOException; import org.sonar.api.config.Settings; import org.sonar.api.server.authentication.BaseIdentityProvider; +import org.sonar.api.server.authentication.Display; import org.sonar.api.server.authentication.UserIdentity; public class FakeBaseIdProvider implements BaseIdentityProvider { @@ -66,8 +67,11 @@ public class FakeBaseIdProvider implements BaseIdentityProvider { } @Override - public String getIconPath() { - return "/static/baseauthplugin/base.png"; + public Display getDisplay() { + return Display.builder() + .setIconPath("/static/baseauthplugin/base.png") + .setBackgroundColor("#205081") + .build(); } @Override diff --git a/it/it-plugins/oauth2-auth-plugin/src/main/java/FakeOAuth2IdProvider.java b/it/it-plugins/oauth2-auth-plugin/src/main/java/FakeOAuth2IdProvider.java index 907d375bf8c..5f3f73ec0a9 100644 --- a/it/it-plugins/oauth2-auth-plugin/src/main/java/FakeOAuth2IdProvider.java +++ b/it/it-plugins/oauth2-auth-plugin/src/main/java/FakeOAuth2IdProvider.java @@ -19,6 +19,7 @@ */ import org.sonar.api.config.Settings; +import org.sonar.api.server.authentication.Display; import org.sonar.api.server.authentication.OAuth2IdentityProvider; import org.sonar.api.server.authentication.UserIdentity; @@ -71,8 +72,11 @@ public class FakeOAuth2IdProvider implements OAuth2IdentityProvider { } @Override - public String getIconPath() { - return "/static/oauth2authplugin/oauth2.png"; + public Display getDisplay() { + return Display.builder() + .setIconPath("/static/oauth2authplugin/oauth2.png") + .setBackgroundColor("#444444") + .build(); } @Override |