2.3.0
Type: Object
([String]?
= ['GET','POST','OPTIONS','PUT','DELETE']
)
List of allowed HTTP methods, separated by comas.
(Boolean?
= true
)
If true, collected metadata will be appended to response.
(String)
URL of the API instance to call.
([Object])
Set authentication plugin to be used with specific routes.
Name | Description |
---|---|
authPatterns.path String
|
Regex string to match 1 or more routes. |
authPatterns.plugin Class
|
Auth plugin, must extend AuthHandler interface from udes-auth-plugins. |
authPatterns.sessionUrl String?
|
URL for getting session id. |
authPatterns.targetService String?
|
Custom target service. If none specified the target service in CAS config will be used. |
(Object?)
Cookie configuration.
Name | Description |
---|---|
cookies.maxAge Number?
(default 14400000 )
|
Time to live (TTL) for the cookie in ms. |
cookies.httpOnly Boolean?
(default true )
|
HttpOnly flag |
cookies.name String?
(default udes-node-orchestrator )
|
Cookie name. |
cookies.path String?
(default / )
|
Path to store cookie. |
cookies.secret String?
(default S3CR3T )
|
Encryption key for cookie. |
cookies.secure Boolean?
(default true )
|
Whether to encrypt cookie or not. |
([Object]?
= []
)
Retrieve data from custom headers.
Name | Description |
---|---|
customHeaders.header String?
|
The custom header to retrieve. |
customHeaders.property String??
|
The property name to give to data. Defaults to header if not defined. |
(Object)
Couchbase configuration.
Name | Description |
---|---|
database.cacheBucketName String
|
Cache bucket name. |
database.cacheBucketPwd String
|
Cache bucket password. |
database.couchbaseCluster [String]
|
List of Couchbase cluster URLs. |
database.sessionBucketName String
|
Session bucket name. |
database.sessionBucketPwd String
|
Session bucket password. |
(Boolean
= false
)
True to return debug data.
(Boolean?
= true
)
Whether to enable CAS authentication or not.
(Boolean?
= true
)
Whether to enable CORS or not.
(Class??)
Class extending the ResponseFormatter interface. Format data on error.
(Object?)
Logger configuration.
Name | Description |
---|---|
log.logLevel (
(default error )
|
Log level. |
log.name String?
(default udes-node-orchestrator )
|
Logger name. |
log.prettyPrint Boolean?
(default true )
|
Whether to print pretty or raw. |
log.showCredentialsAsClearText Boolean?
(default false )
|
If true credentials will be displayed as clear text in logs. |
(String)
Url to login page.
(Number?)
Port number for server to listen on. One of socket or port is required.
(Class??)
Class extending the ResponseFormatter interface. Format response data.
(String?)
Relative path to socket for server to listen on. One of socket or port is required.
Type: Object
(Boolean?
= false
)
Whether to activate CAS debugging or not.
(Object?)
CAS from AJAX configuration.
Name | Description |
---|---|
fromAjax.header String?
(default x-client-ajax )
|
Default response header for AJAX responses. |
fromAjax.status Number?
(default 401 )
|
Default status code for AJAX responses. |
(Boolean?
= false
)
Send all validation requests through the CAS gateway feature.
([String]?
= []
)
Ignore CAS validation on these routes.
(String?
= 'silent'
)
Log level used by connect-cas middleware
([String]?
= []
)
Filter url for CAS authentication
(Object?)
CAS path configuration.
Name | Description |
---|---|
paths.login String?
(default /login )
|
CAS login path. |
paths.logout String?
(default /logout )
|
CAS logout path. |
paths.proxy String?
(default /proxy )
|
Path to obtain proxy ticket. |
paths.proxyCallback String?
(default /proxyCallback )
|
Path to call once proxy ticket is obtained. |
paths.serviceValidate String?
(default /proxyValidate )
|
Path to validate TGT. |
paths.validate String?
(default /validate )
|
Validation path. |
(Boolean?
= false
)
Whether to automatically redirect or not.
(Boolean?
= false
)
Whether to renew CAS authentication by default or not.
(String)
URL to CAS server.
(String)
URL of the orchestrator endpoint.
(Boolean?
= false
)
single sign logout feature
(String)
URI to CAS service.
Interface for handling various types of authentication.
Orchestrator server. Handles routes and HTTP traffic.
(Config)
Configuration file for server instance.
config
argument is null.
Set Orchestrator endpoints
Interface for formatting HTTP response data.
Handles response standardisation as well as http responses and requests.
req
,
res
or
config
argument is null.
Get file from server and send it as response.
(Object)
Request options.
Name | Description |
---|---|
options.body Object
|
Request body. |
options.method (
|
Request method. |
options.url String
|
Request URL. |
options.headers Object
(default getHeaders() )
|
Request headers. |
(Boolean
= true
)
True if is first HTTP call.
Promise
:
Promise object represents server response.
Creates a usable object from the request URL parameters.
Object
:
Parameters in the request URL.
Creates a usable object from the request's URL parameters and body.
Object
:
Parameters in the request URL and body.
Set response headers, status code and send response data.