Skip to main content

mockCredentials.limitedUser

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

Utilities related to limited user credentials.

Signature:

namespace limitedUser 

Functions

FunctionDescription
cookie(userEntityRef)Returns an authorization header with a mocked limited user token. If a payload is provided it will be encoded into the token and forwarded to the credentials object when authenticated by the mock auth service.
invalidCookie()
invalidToken()
token(userEntityRef)Creates a mocked limited user token. If a payload is provided it will be encoded into the token and forwarded to the credentials object when authenticated by the mock auth service.