Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configuration.structure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rest: true # io-error-retries
service: true # service-url
results: true
security:
proxy: true
authenticator:
directAccessToken: true
custom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.exclamationlabs.connid.base.connector.configuration.basetypes.RestConfiguration;
import com.exclamationlabs.connid.base.connector.configuration.basetypes.ResultsConfiguration;
import com.exclamationlabs.connid.base.connector.configuration.basetypes.ServiceConfiguration;
import com.exclamationlabs.connid.base.connector.configuration.basetypes.security.ProxyConfiguration;
import com.exclamationlabs.connid.base.connector.configuration.basetypes.security.authenticator.DirectAccessTokenConfiguration;

/**
Expand All @@ -20,7 +21,7 @@
* your changes in this file. Instead, modify the configuration.structure.yml in this project.
*/
@ConfigurationClass(skipUnsupported = true, ignore={"active", "name", "source", "currentToken"})
public class Scim2Configuration implements ConnectorConfiguration, RestConfiguration, ResultsConfiguration, ServiceConfiguration, DirectAccessTokenConfiguration {
public class Scim2Configuration implements ConnectorConfiguration, RestConfiguration, ResultsConfiguration, ServiceConfiguration, ProxyConfiguration, DirectAccessTokenConfiguration {

protected ConnectorMessages connectorMessages;

Expand Down Expand Up @@ -57,6 +58,11 @@ public class Scim2Configuration implements ConnectorConfiguration, RestConfigura
@ConfigurationInfo(path="service.serviceUrl")
private String serviceUrl;

@Pattern(regexp = "socks5|http", flags = Pattern.Flag.CASE_INSENSITIVE)
@NotBlank(message="proxyType cannot be blank")
@ConfigurationInfo(path="security.proxy.proxyType")
private String proxyType;

@NotNull(message="importBatchSize cannot be null")
@ConfigurationInfo(path="results.importBatchSize")
private Integer importBatchSize = 50;
Expand All @@ -72,6 +78,10 @@ public class Scim2Configuration implements ConnectorConfiguration, RestConfigura
@ConfigurationInfo(path="custom.enableStandardSchema")
private Boolean enableStandardSchema = false;

@NotBlank(message="proxyHost cannot be blank")
@ConfigurationInfo(path="security.proxy.proxyHost")
private String proxyHost;

@NotBlank(message="token cannot be blank")
@ConfigurationInfo(path="security.authenticator.directAccessToken.token")
private String token;
Expand All @@ -84,6 +94,10 @@ public class Scim2Configuration implements ConnectorConfiguration, RestConfigura
@ConfigurationInfo(path="custom.enableSlackSchema")
private Boolean enableSlackSchema = false;

@NotNull(message="proxyPort cannot be null")
@ConfigurationInfo(path="security.proxy.proxyPort")
private Integer proxyPort;

@ConfigurationInfo(path="service.duplicateErrorReturnsId")
private Boolean duplicateErrorReturnsId = false;

Expand Down Expand Up @@ -196,6 +210,20 @@ public void setServiceUrl(String input) {
this.serviceUrl = input;
}

@ConfigurationProperty(
displayMessageKey = "Proxy Type",
helpMessageKey = "Type of Proxy Server - either `socks5` or `http`",
order = 2403,
confidential = false,
required = true)
public String getProxyType() {
return this.proxyType;
}

public void setProxyType(String input) {
this.proxyType = input;
}

@ConfigurationProperty(
displayMessageKey = "Import Batch Size",
helpMessageKey = "If supplied, import operations will be invoked using this given batch size, so that API`s that support paging can import all records using a particular batch size (instead of all at once.",
Expand Down Expand Up @@ -252,6 +280,20 @@ public void setEnableStandardSchema(Boolean input) {
this.enableStandardSchema = input;
}

@ConfigurationProperty(
displayMessageKey = "Proxy Host",
helpMessageKey = "Domain or IP Address of Proxy Server",
order = 2401,
confidential = false,
required = true)
public String getProxyHost() {
return this.proxyHost;
}

public void setProxyHost(String input) {
this.proxyHost = input;
}

@ConfigurationProperty(
displayMessageKey = "Token",
helpMessageKey = "Fixed token value providing access to the connector",
Expand Down Expand Up @@ -294,6 +336,20 @@ public void setEnableSlackSchema(Boolean input) {
this.enableSlackSchema = input;
}

@ConfigurationProperty(
displayMessageKey = "Proxy Port",
helpMessageKey = "Port Number of Proxy Server",
order = 2402,
confidential = false,
required = true)
public Integer getProxyPort() {
return this.proxyPort;
}

public void setProxyPort(Integer input) {
this.proxyPort = input;
}

@ConfigurationProperty(
displayMessageKey = "Duplicate Error Returns Id",
helpMessageKey = "When a create is attempted and an AlreadyExistsException is generated by the driver/invocator, the adapter shall attempt to call getOneByName() driver/invocator method to return the id of the existing record matching the current name value.",
Expand Down