@backstage/core-app-api
Home > @backstage/core-app-api
Core app API used by Backstage apps
Classes
Class |
Description |
---|---|
Base implementation for the AlertApi that simply forwards alerts to consumers. | |
ApiFactoryRegistry is an ApiFactoryHolder implementation that enables registration of API Factories with different scope. Each scope has an assigned priority, where factories registered with higher priority scopes override ones with lower priority. | |
Handles the actual on-demand instantiation and memoization of APIs out of an ApiFactoryHolder. | |
Exposes the themes installed in the app, and permits switching the currently active theme. | |
Implements the OAuth flow to Atlassian products. | |
Implements the OAuth flow to Bitbucket products. | |
Implements the OAuth flow to Bitbucket Server. | |
Decorates an ErrorApi by also forwarding error messages to the alertApi with an 'error' severity. | |
Base implementation for the ErrorApi that simply forwards errors to consumers. | |
A collection of common middlewares for the FetchApi. | |
FrontendHostDiscovery is a config driven DiscoveryApi implementation. It uses the app-config to determine the url for a plugin. | |
Implements the OAuth flow to GitHub products. | |
Implements the OAuth flow to GitLab products. | |
Implements the OAuth flow to Google products. | |
A feature flags implementation that stores the flags in the browser's local storage. | |
Implements the OAuth flow to Microsoft products. | |
An implementation of the AnalyticsApi that can be used to forward analytics events to multiple concrete implementations. | |
Base implementation for the AnalyticsApi that does nothing. | |
Implements a generic OAuth2 flow for auth. | |
The OAuthRequestManager is an implementation of the OAuthRequestApi. The purpose of this class and the API is to read a stream of incoming requests of OAuth access tokens from different providers with varying scope, and funnel them all together into a single request for each OAuth provider. | |
Implements the OAuth flow to Okta products. | |
Implements a OneLogin OAuth flow. | |
Implements a general SAML based auth flow. | |
Utility class that helps with error forwarding. | |
UrlPatternDiscovery is a lightweight DiscoveryApi implementation. It uses a single template string to construct URLs for each plugin. | |
Implements the OAuth flow for VMware Cloud Services | |
An implementation of the storage API, that uses the browser's local storage. |
Functions
Function |
Description |
---|---|
App router and sign-in page wrapper. | |
Builds a fetch API, based on the builtin fetch wrapped by a set of optional middleware implementations that add behaviors. | |
Creates a new Backstage App where the full set of options are required. | |
Enables or disables rendering of its children based on the state of a given feature flag. | |
A wrapper around a set of routes. |
Interfaces
Interface |
Description |
---|---|
Props for the AppRouter() component. | |
A middleware that modifies the behavior of an ongoing fetch. |
Variables
Variable |
Description |
---|---|
Provides an ApiHolder for consumption in the React tree. | |
The default config loader, which expects that config is available at compile-time in It will also load runtime config from the __APP_INJECTED_RUNTIME_CONFIG__ string, which can be rewritten at runtime to contain an additional JSON config object. If runtime config is present, it will be placed first in the config array, overriding other config values. |
Type Aliases
Type Alias |
Description |
---|---|
Scope type when registering API factories. | |
Prop types for the ApiProvider component. | |
A set of replaceable core components that are part of every Backstage app. | |
A function that loads in the App config that will be accessible via the ConfigApi. If multiple config objects are returned in the array, values in the earlier configs will override later ones. | |
The central context providing runtime app specific state that plugin views want to consume. | |
A set of well-known icons that should be available within an app. | |
The options accepted by createSpecializedApp(). | |
A function that can bind from external routes of a given plugin, to concrete routes of other plugins. See createSpecializedApp(). | |
Generic create options for auth APIs. | |
The public API of the output of createSpecializedApp(). | |
Session information for Bitbucket Server auth. | |
Session information for Bitbucket auth. | |
Props for the | |
Props for the fallback error boundary. | |
Props for the FeatureFlagged() component. | |
Props for the FlatRoutes() component. | |
OAuth2 create options. | |
Session information for generic OAuth2 auth. | |
Create options for OAuth APIs. | |
OneLogin auth provider create options. | |
Options for login popup | |
Props for the |