Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 860 Bytes

BasicAuthInterceptor.md

File metadata and controls

29 lines (22 loc) · 860 Bytes

BasicAuthInterceptor

A BasicAuthInterceptor instance is a simple interceptor that adds basic authentication to all requests.

const {
  Client,
  BasicAuthInterceptor
} = require("camunda-external-task-client-js");

const basicAuthentication = new BasicAuthInterceptor({
  username: "demo",
  password: "demo"
});

const client = new Client({
  baseUrl: "http://localhost:8080/engine-rest",
  interceptors: basicAuthentication
});

new BasicAuthInterceptor(options)

Here's a list of the available options:

Option Description Type Required Default
username username used in basic authentication string
password password used in basic authentication string