Skip to main content

ScmAuth.forBitbucketServer()

Home > @backstage/integration-react > ScmAuth > forBitbucketServer

Creates a new ScmAuth instance that handles authentication towards Bitbucket Server.

The host option determines which URLs that are handled by this instance.

The default scopes are:

PUBLIC_REPOS REPO_READ

If the additional repoWrite permission is requested, these scopes are added:

REPO_WRITE

Signature:

static forBitbucketServer(bitbucketAuthApi: OAuthApi, options: {
host: string;
scopeMapping?: {
default?: string[];
repoWrite?: string[];
};
}): ScmAuth;

Parameters

Parameter

Type

Description

bitbucketAuthApi

OAuthApi

options

{ host: string; scopeMapping?: { default?: string[]; repoWrite?: string[]; }; }

**Returns:**

ScmAuth