BearerTokenHeaderValue
Matches the value part of a OIDC or OAuth header with the supplied token - useful in conjunction with the StateVariable matcher.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.http.BearerTokenHeaderValue(token: any)
Parameters
Name | Type | Description |
---|---|---|
token | any | A string or string matcher for a Bearer auth token. |
import io.contract_testing.contractcase.definitions.matchers.http.BearerTokenHeaderValue;
new BearerTokenHeaderValue(java.lang.Object token);
Parameters
Name | Type | Description |
---|---|---|
token | java.lang.Object | A string or string matcher for a Bearer auth token. |