Skip to content

Commit

Permalink
chore: use new oxCore version
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Apr 7, 2023
1 parent e78ea60 commit 5662398
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Response retrieveApiConfiguration() {
apiConfig.setApiUmaClientKeyStorePassword(
encryptionService.decrypt(oxTrustappConfiguration.getApiUmaClientKeyStorePassword()));
apiConfig.setApiUmaResourceId(oxTrustappConfiguration.getApiUmaResourceId());
apiConfig.setApiUmaScopes(oxTrustappConfiguration.getApiUmaScopes());
apiConfig.setApiUmaScope(oxTrustappConfiguration.getApiUmaScope());
apiConfig.setOxTrustApiTestMode(oxTrustappConfiguration.isOxTrustApiTestMode());
return Response.ok(apiConfig).build();
} catch (Exception e) {
Expand Down Expand Up @@ -98,8 +98,8 @@ public Response updateApiConfiguration(ApiConfig apiConfig) {
if (!Strings.isNullOrEmpty(apiConfig.getApiUmaResourceId())) {
appConfiguration.setApiUmaResourceId(apiConfig.getApiUmaResourceId());
}
if (apiConfig.getApiUmaScopes() != null) {
appConfiguration.setApiUmaScopes(apiConfig.getApiUmaScopes());
if (apiConfig.getApiUmaScope() != null) {
appConfiguration.setApiUmaScope(apiConfig.getApiUmaScope());
}
appConfiguration.setOxTrustApiTestMode(apiConfig.getOxTrustApiTestMode());
jsonConfigurationService.saveOxTrustappConfiguration(appConfiguration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class ApiConfig implements Serializable{
private String apiUmaClientKeyId;
@JsonProperty("apiUmaResourceId")
private String apiUmaResourceId;
@JsonProperty("apiUmaScopes")
private String[] apiUmaScopes = null;
@JsonProperty("apiUmaScope")
private String apiUmaScope;
@JsonProperty("apiUmaClientKeyStoreFile")
private String apiUmaClientKeyStoreFile;
@JsonProperty("apiUmaClientKeyStorePassword")
Expand Down Expand Up @@ -61,14 +61,14 @@ public void setApiUmaResourceId(String apiUmaResourceId) {
this.apiUmaResourceId = apiUmaResourceId;
}

@JsonProperty("apiUmaScopes")
public String[] getApiUmaScopes() {
return apiUmaScopes;
@JsonProperty("apiUmaScope")
public String getApiUmaScope() {
return apiUmaScope;
}

@JsonProperty("apiUmaScopes")
public void setApiUmaScopes(String[] strings) {
this.apiUmaScopes = strings;
public void setApiUmaScope(String apiUmaScope) {
this.apiUmaScope = apiUmaScope;
}

@JsonProperty("apiUmaClientKeyStoreFile")
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,42 +215,42 @@
<dependency>
<groupId>org.gluu</groupId>
<artifactId>gluu-orm-annotation</artifactId>
<version>${oxcore.version}</version>
<version>${gluu.parent.version}</version>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
<artifactId>gluu-orm-model</artifactId>
<version>${oxcore.version}</version>
<version>${gluu.parent.version}</version>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
<artifactId>gluu-orm-ldap</artifactId>
<version>${oxcore.version}</version>
<version>${gluu.parent.version}</version>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
<artifactId>gluu-orm-ldap-sample</artifactId>
<version>${oxcore.version}</version>
<version>${gluu.parent.version}</version>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
<artifactId>gluu-orm-couchbase</artifactId>
<version>${oxcore.version}</version>
<version>${gluu.parent.version}</version>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
<artifactId>gluu-orm-hybrid</artifactId>
<version>${oxcore.version}</version>
<version>${gluu.parent.version}</version>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
<artifactId>gluu-orm-cdi</artifactId>
<version>${oxcore.version}</version>
<version>${gluu.parent.version}</version>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
<artifactId>gluu-orm-standalone</artifactId>
<version>${oxcore.version}</version>
<version>${gluu.parent.version}</version>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
Expand Down

0 comments on commit 5662398

Please sign in to comment.