Skip to main content

BasicAuthHeaderValue

Matches the value part of a basic auth header with the supplied username and password - useful in conjunction with the StateVariable matcher.

import { matchers } from '@contract-case/case-definition-dsl'

new matchers.http.BasicAuthHeaderValue(username: any, password: any)

Parameters

NameTypeDescription
usernameanyThe username for this basic auth header.
passwordanyThe password for this basic auth password.