Skip to main content
Version: Next

mockCredentials.service

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

Utilities related to service credentials.

Signature:

namespace service 

Functions

Function

Description

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 Alias

Description

TokenOptions

Options for the creation of mock service tokens.