Backstage
    Preparing search index...
    • Creates a mock implementation of the HttpAuthService.

      By default all requests without credentials are treated as requests from the default mock user principal. This behavior can be configured with the defaultCredentials option.

      Parameters

      • Optionaloptions: { defaultCredentials?: BackstageCredentials; pluginId?: string }
        • OptionaldefaultCredentials?: BackstageCredentials

          The default credentials to use if there are no credentials present in the incoming request.

          By default all requests without credentials are treated as authenticated as the default mock user as returned from mockCredentials.user().

        • OptionalpluginId?: string

      Returns HttpAuthService