Skip to content

Commit 57aedf1

Browse files
committed
fix: adjust gluu coordinates #162
1 parent 1632090 commit 57aedf1

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

app/pom.xml

+16-9
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55

6-
<modelVersion>4.0.0</modelVersion>
6+
<modelVersion>4.0.0</modelVersion>
77

8-
<artifactId>casa</artifactId>
9-
<packaging>war</packaging>
8+
<artifactId>casa</artifactId>
9+
<packaging>war</packaging>
1010

11-
<parent>
12-
<groupId>org.gluu</groupId>
13-
<artifactId>casa-base</artifactId>
14-
<version>5.0.0-SNAPSHOT</version>
15-
</parent>
11+
<parent>
12+
<groupId>org.gluu</groupId>
13+
<artifactId>casa-base</artifactId>
14+
<version>5.0.0-SNAPSHOT</version>
15+
</parent>
1616

17-
<dependencies>
17+
<dependencies>
1818
<dependency>
1919
<groupId>org.gluu</groupId>
2020
<artifactId>casa-config</artifactId>
@@ -260,11 +260,18 @@
260260
<version>2.3.2</version>
261261
</dependency>
262262

263+
<!-- JACKSON -->
263264
<dependency>
264265
<groupId>com.fasterxml.jackson.core</groupId>
265266
<artifactId>jackson-core</artifactId>
266267
<version>${jackson.version}</version>
267268
</dependency>
269+
<dependency>
270+
<groupId>com.fasterxml.jackson.core</groupId>
271+
<artifactId>jackson-annotations</artifactId>
272+
<version>${jackson.version}</version>
273+
</dependency>
274+
268275
<dependency>
269276
<groupId>com.nimbusds</groupId>
270277
<artifactId>oauth2-oidc-sdk</artifactId>

app/src/main/java/org/gluu/casa/core/PersistenceService.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class PersistenceService implements IPersistenceService {
4040

4141
private static final int RETRIES = 15;
4242
private static final int RETRY_INTERVAL = 15;
43-
private static final String DEFAULT_CONF_BASE = "/etc/gluu/conf";
43+
private static final String DEFAULT_CONF_BASE = "/etc/jans/conf";
4444

4545
@Inject
4646
private Logger logger;
@@ -386,7 +386,7 @@ private boolean setup(int retries, int retry_interval) throws Exception {
386386
entryManager = null;
387387
stringEncrypter = Utils.stringEncrypter();
388388

389-
//load the configuration using the oxcore-persistence-cdi API
389+
//load the configuration using the jans-core-persistence-cdi API
390390
logger.debug("Obtaining PersistenceEntryManagerFactory from persistence API");
391391
PersistenceConfiguration persistenceConf = persistanceFactoryService.loadPersistenceConfiguration();
392392
FileConfiguration persistenceConfig = persistenceConf.getConfiguration();
@@ -418,14 +418,14 @@ private boolean setup(int retries, int retry_interval) throws Exception {
418418
logger.error("No EntryManager could be obtained");
419419
} else {
420420

421-
try (Reader f = new FileReader(String.format("%s/gluu.properties", DEFAULT_CONF_BASE))) {
421+
try (Reader f = new FileReader(String.format("%s/jans.properties", DEFAULT_CONF_BASE))) {
422422

423423
Properties generalProps = new Properties();
424424
generalProps.load(f);
425425
//Initialize important class members
426426
ret = loadApplianceSettings(generalProps);
427427
} catch (Exception e) {
428-
logger.error("Fatal: gluu.properties not readable", e);
428+
logger.error("Fatal: jans.properties not readable", e);
429429
}
430430
}
431431

config/src/main/java/org/gluu/casa/conf/MainSettings.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
import java.util.List;
99
import java.util.Map;
1010

11-
/**
12-
* @author jgomer
13-
*/
1411
@JsonIgnoreProperties(ignoreUnknown = true)
1512
public class MainSettings {
1613

@@ -30,7 +27,7 @@ public class MainSettings {
3027
@JsonInclude(JsonInclude.Include.NON_EMPTY)
3128
private String extraCssSnippet;
3229

33-
@JsonProperty("oxd_config")
30+
@JsonProperty("oidc_config")
3431
private OIDCSettings oidcSettings;
3532

3633
@JsonProperty("allowed_cors_domains")
@@ -98,7 +95,7 @@ public void setExtraCssSnippet(String extraCssSnippet) {
9895
this.extraCssSnippet = extraCssSnippet;
9996
}
10097

101-
public void setOidcSettings(OIDCSettings oxdSettings) {
98+
public void setOidcSettings(OIDCSettings oidcSettings) {
10299
this.oidcSettings = oidcSettings;
103100
}
104101

shared/src/main/java/org/gluu/casa/misc/Utils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
import org.slf4j.LoggerFactory;
2828

2929
/**
30-
* Provides miscelaneous utilities.
30+
* Provides miscellaneous utilities.
3131
* @author jgomer
3232
*/
3333
public final class Utils {
3434

3535
private static Logger LOG = LoggerFactory.getLogger(Utils.class);
3636
private static ObjectMapper MAPPER = new ObjectMapper();
3737
private static Tika tika = new Tika();
38-
private static final String SALT_FILE_LOCATION = "/etc/gluu/conf/salt";
38+
private static final String SALT_FILE_LOCATION = "/etc/jans/conf/salt";
3939

4040
private Utils() { }
4141

0 commit comments

Comments
 (0)