Skip to content

Commit

Permalink
feat(config-api): data conversion, audit log and swagger enhancement (#…
Browse files Browse the repository at this point in the history
…3588)

* feat(config-api): interceptor code

* feat(config-api): interceptor for request

* feat(config-api): interceptor code wip

* feat(config-api): interceptor code wip

* feat(config-api): syns with main

* feat(config-api): client creation claim enhancement

* feat(config-api): client creation claim enhancement

* fix: jans-linux-setup opPolicyUri and opTosUri (#3411)

* feat(config-api): autit log enhancement

* feat(config-api): interceptor code

* feat(config-api): datatype conversion wip

* feat(config-api): data conversion wip

* feat(config-api): datatype conversion

* feat(config-api): datatype conversion

* feat(config-api): data conversion code

* feat(config-api): data conversion code

* feat(config-api): date conversion code

* feat(config-api): date conversion code

* feat(config-api): audit log enhancement

* feat(config-api): request interceptor

* feat(config-api): date data conversion

* feat(config-api): swagger spec

* feat(config-api): swagger update for param desc

* feat(config-api): data conversion

* feat(config-api): data conversion, audit log and swagger enhancement

Co-authored-by: Devrim <devrimyatar@gluu.org>
  • Loading branch information
pujavs and devrimyatar authored Jan 10, 2023
1 parent f3f9937 commit a87b75b
Show file tree
Hide file tree
Showing 31 changed files with 703 additions and 128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class ApiAppConfiguration implements Configuration {
private List<String> userMandatoryAttributes;
private AgamaConfiguration agamaConfiguration;
private AuditLogConf auditLogConf;
private DataFormatConversionConf dataFormatConversionConf;

public boolean isConfigOauthEnabled() {
return configOauthEnabled;
Expand Down Expand Up @@ -239,6 +240,14 @@ public AuditLogConf getAuditLogConf() {
public void setAuditLogConf(AuditLogConf auditLogConf) {
this.auditLogConf = auditLogConf;
}

public DataFormatConversionConf getDataFormatConversionConf() {
return dataFormatConversionConf;
}

public void setDataFormatConversionConf(DataFormatConversionConf dataFormatConversionConf) {
this.dataFormatConversionConf = dataFormatConversionConf;
}

@Override
public String toString() {
Expand All @@ -256,6 +265,7 @@ public String toString() {
+ " , userMandatoryAttributes="+ userMandatoryAttributes
+ " , agamaConfiguration="+ agamaConfiguration
+ " , auditLogConf="+ auditLogConf
+ " , dataFormatConversionConf="+ dataFormatConversionConf
+ "]";
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package io.jans.configapi.model.configuration;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Collection;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
Expand All @@ -11,6 +13,11 @@ public class AuditLogConf {
*/
private boolean enabled;

/**
* HTTP methods for which audit is disabled
*/
private Collection<String> ignoreHttpMethod;

/**
* List of header attributes
*/
Expand All @@ -24,6 +31,14 @@ public void setEnabled(boolean enabled) {
this.enabled = enabled;
}

public Collection<String> getIgnoreHttpMethod() {
return ignoreHttpMethod;
}

public void setIgnoreHttpMethod(Collection<String> ignoreHttpMethod) {
this.ignoreHttpMethod = ignoreHttpMethod;
}

public List<String> getHeaderAttributes() {
return headerAttributes;
}
Expand All @@ -34,7 +49,8 @@ public void setHeaderAttributes(List<String> headerAttributes) {

@Override
public String toString() {
return "AuditLogConf [enabled=" + enabled + ", headerAttributes=" + headerAttributes + "]";
return "AuditLogConf [enabled=" + enabled + ", ignoreHttpMethod=" + ignoreHttpMethod + ", headerAttributes="
+ headerAttributes + "]";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package io.jans.configapi.model.configuration;

import java.util.Collection;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class ConversionAttributes {

/**
* Date attributes for conversion
*/
private Collection<String> dateAttributes;

/**
* boolean attributes for conversion
*/
private Collection<String> booleanAttributes;

public Collection<String> getDateAttributes() {
return dateAttributes;
}

public void setDateAttributes(Collection<String> dateAttributes) {
this.dateAttributes = dateAttributes;
}

public Collection<String> getBooleanAttributes() {
return booleanAttributes;
}

public void setBooleanAttributes(Collection<String> booleanAttributes) {
this.booleanAttributes = booleanAttributes;
}

@Override
public String toString() {
return "ConversionAttributes [dateAttributes=" + dateAttributes + ", booleanAttributes=" + booleanAttributes
+ "]";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package io.jans.configapi.model.configuration;

import java.util.Collection;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class DataFormatConversionConf {

/**
* Flag to enable and disable data conversion
*/
private boolean enabled;

/**
* HTTP methods for which data conversion is to be disabled
*/
private Collection<String> ignoreHttpMethod;

public boolean isEnabled() {
return enabled;
}

public void setEnabled(boolean enabled) {
this.enabled = enabled;
}

public Collection<String> getIgnoreHttpMethod() {
return ignoreHttpMethod;
}

public void setIgnoreHttpMethod(Collection<String> ignoreHttpMethod) {
this.ignoreHttpMethod = ignoreHttpMethod;
}

@Override
public String toString() {
return "DataFormatConversionConf [enabled=" + enabled + ", ignoreHttpMethod=" + ignoreHttpMethod + "]";
}

}
Loading

0 comments on commit a87b75b

Please sign in to comment.