Skip to main content

ScmAuth.createDefaultApiFactory()

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

Creates an API factory that enables auth for each of the default SCM providers.

Signature:

static createDefaultApiFactory(): import("@backstage/core-plugin-api").ApiFactory<ScmAuthApi, ScmAuthApi, {
github: OAuthApi & import("@backstage/core-plugin-api").ProfileInfoApi & import("@backstage/core-plugin-api").BackstageIdentityApi & import("@backstage/core-plugin-api").SessionApi;
gitlab: OAuthApi & import("@backstage/core-plugin-api").OpenIdConnectApi & import("@backstage/core-plugin-api").ProfileInfoApi & import("@backstage/core-plugin-api").BackstageIdentityApi & import("@backstage/core-plugin-api").SessionApi;
azure: OAuthApi & import("@backstage/core-plugin-api").OpenIdConnectApi & import("@backstage/core-plugin-api").ProfileInfoApi & import("@backstage/core-plugin-api").BackstageIdentityApi & import("@backstage/core-plugin-api").SessionApi;
bitbucket: OAuthApi & import("@backstage/core-plugin-api").ProfileInfoApi & import("@backstage/core-plugin-api").BackstageIdentityApi & import("@backstage/core-plugin-api").SessionApi;
}>;

Returns:

import("@backstage/core-plugin-api").ApiFactory<ScmAuthApi, ScmAuthApi, { github: OAuthApi & import("@backstage/core-plugin-api").ProfileInfoApi & import("@backstage/core-plugin-api").BackstageIdentityApi & import("@backstage/core-plugin-api").SessionApi; gitlab: OAuthApi & import("@backstage/core-plugin-api").OpenIdConnectApi & import("@backstage/core-plugin-api").ProfileInfoApi & import("@backstage/core-plugin-api").BackstageIdentityApi & import("@backstage/core-plugin-api").SessionApi; azure: OAuthApi & import("@backstage/core-plugin-api").OpenIdConnectApi & import("@backstage/core-plugin-api").ProfileInfoApi & import("@backstage/core-plugin-api").BackstageIdentityApi & import("@backstage/core-plugin-api").SessionApi; bitbucket: OAuthApi & import("@backstage/core-plugin-api").ProfileInfoApi & import("@backstage/core-plugin-api").BackstageIdentityApi & import("@backstage/core-plugin-api").SessionApi; }>