Skip to main content
Version: Next

getBitbucketCloudRequestOptions()

Home > @backstage/integration > getBitbucketCloudRequestOptions

Gets the request options necessary to make requests to a given provider. Returns headers for authenticating with Bitbucket Cloud. Supports both username/token and username/appPassword auth.

Signature:

function getBitbucketCloudRequestOptions(config: BitbucketCloudIntegrationConfig): {
headers: Record<string, string>;
};

Parameters

Parameter

Type

Description

config

BitbucketCloudIntegrationConfig

The relevant provider config

**Returns:**

{ headers: Record<string, string>; }