mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-07 20:40:05 +00:00
BREAKING CHANGE: boolean allowInsecure is replaced configuration of Https Agent
This commit is contained in:
10
src/types/HttpsAgent.ts
Normal file
10
src/types/HttpsAgent.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface HttpsAgent {
|
||||
selfSigned?: {
|
||||
ca: string[]
|
||||
}
|
||||
clientCA?: {
|
||||
key: string
|
||||
cert: string
|
||||
}
|
||||
allowInsecure?: boolean
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import { ServerType } from '@sasjs/utils/types'
|
||||
import { HttpsAgent } from './HttpsAgent'
|
||||
|
||||
/**
|
||||
* Specifies the configuration for the SASjs instance - eg where and how to
|
||||
@@ -58,7 +59,7 @@ export class SASjsConfig {
|
||||
* 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
|
||||
httpsAgentConfiguration: HttpsAgent = {}
|
||||
/**
|
||||
* Supported login mechanisms are - Redirected and Default
|
||||
*/
|
||||
|
||||
@@ -2,6 +2,7 @@ export * from './Context'
|
||||
export * from './CsrfToken'
|
||||
export * from './Folder'
|
||||
export * from './File'
|
||||
export * from './HttpsAgent'
|
||||
export * from './Job'
|
||||
export * from './JobDefinition'
|
||||
export * from './JobResult'
|
||||
|
||||
Reference in New Issue
Block a user