Skip to main content

mockCredentials.service

Home > @backstage/backend-test-utils > mockCredentials > service

Utilities related to service credentials.

Signature:

namespace service 

Functions

FunctionDescription
header(options)Returns an authorization header with a mocked service token. The provided options will be encoded into the token and forwarded to the credentials object when authenticated by the mock auth service.
invalidHeader()
invalidToken()
token(options)Creates a mocked service token. The provided options will be encoded into the token and forwarded to the credentials object when authenticated by the mock auth service.

Type Aliases

Type AliasDescription
TokenOptionsOptions for the creation of mock service tokens.