From 4694ca1ff165da6abcf48c2cea6b4d28f353ae00 Mon Sep 17 00:00:00 2001 From: cb-nitin Date: Mon, 11 Feb 2019 19:12:22 +0530 Subject: [PATCH] Changes in GoogleSettings file --- .../java/org/sonarqube/auth/googleoauth/GoogleSettings.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/sonarqube/auth/googleoauth/GoogleSettings.java b/src/main/java/org/sonarqube/auth/googleoauth/GoogleSettings.java index b8a65e6..3434d53 100644 --- a/src/main/java/org/sonarqube/auth/googleoauth/GoogleSettings.java +++ b/src/main/java/org/sonarqube/auth/googleoauth/GoogleSettings.java @@ -69,6 +69,7 @@ public class GoogleSettings { public static final String LOGIN_STRATEGY_DEFAULT_VALUE = LOGIN_STRATEGY_UNIQUE; public static final String CATEGORY = "security"; public static final String SUBCATEGORY = "googleoauth"; + public static final String SONAR_CONTEXT = "sonar.web.context"; private final Settings settings; @@ -109,6 +110,10 @@ public String webURL() { } return url; } + + public String getWebContext() { + return settings.getString(SONAR_CONTEXT) == null ? "" : settings.getString(SONAR_CONTEXT); + } public String apiURL() { String url = settings.getString(API_URL);