Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Changes in GoogleSettings file
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-nitin committed Feb 11, 2019
1 parent db778f4 commit 4694ca1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4694ca1

Please sign in to comment.