mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-16 16:40:06 +00:00
fix(insecure-requests): add flag to config
This commit is contained in:
@@ -21,7 +21,8 @@ const defaultConfig: SASjsConfig = {
|
|||||||
serverType: ServerType.SasViya,
|
serverType: ServerType.SasViya,
|
||||||
debug: false,
|
debug: false,
|
||||||
contextName: 'SAS Job Execution compute context',
|
contextName: 'SAS Job Execution compute context',
|
||||||
useComputeApi: false
|
useComputeApi: false,
|
||||||
|
allowInsecureRequests: false
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -715,7 +716,10 @@ export default class SASjs {
|
|||||||
this.sasjsConfig.serverUrl = this.sasjsConfig.serverUrl.slice(0, -1)
|
this.sasjsConfig.serverUrl = this.sasjsConfig.serverUrl.slice(0, -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.requestClient = new RequestClient(this.sasjsConfig.serverUrl)
|
this.requestClient = new RequestClient(
|
||||||
|
this.sasjsConfig.serverUrl,
|
||||||
|
this.sasjsConfig.allowInsecureRequests
|
||||||
|
)
|
||||||
|
|
||||||
this.jobsPath =
|
this.jobsPath =
|
||||||
this.sasjsConfig.serverType === ServerType.SasViya
|
this.sasjsConfig.serverType === ServerType.SasViya
|
||||||
|
|||||||
@@ -57,4 +57,10 @@ export class SASjsConfig {
|
|||||||
* triggered using the APIs instead of the Job Execution Web Service broker.
|
* triggered using the APIs instead of the Job Execution Web Service broker.
|
||||||
*/
|
*/
|
||||||
useComputeApi = false
|
useComputeApi = false
|
||||||
|
/**
|
||||||
|
* Defaults to `false`.
|
||||||
|
* When set to `true`, the adapter will allow requests to SAS servers that use a self-signed SSL certificate.
|
||||||
|
* Changing this setting is not recommended.
|
||||||
|
*/
|
||||||
|
allowInsecureRequests = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user