6.0 KiB
@backstage/integration-react
0.1.15
Patch Changes
cd450844f6: Moved React dependencies topeerDependenciesand allow both React v16 and v17 to be used.- Updated dependencies
- @backstage/core-components@0.8.0
- @backstage/core-plugin-api@0.3.0
0.1.14
Patch Changes
- Updated dependencies
- @backstage/core-components@0.7.4
- @backstage/core-plugin-api@0.2.0
0.1.13
Patch Changes
36e2b548cb: Clean up the API exports- Updated dependencies
- @backstage/config@0.1.11
- @backstage/theme@0.2.12
- @backstage/integration@0.6.9
- @backstage/core-components@0.7.2
- @backstage/core-plugin-api@0.1.12
0.1.12
Patch Changes
- Updated dependencies
- @backstage/integration@0.6.8
- @backstage/core-components@0.7.0
- @backstage/theme@0.2.11
0.1.11
Patch Changes
-
18148f23da: AddedScmAuthApialong with the implementationScmAuth. TheScmAuthApiprovides methods for client-side authentication towards multiple different source code management services simultaneously.When requesting credentials you supply a URL along with the same options as the other
OAuthApis, and optionally a request for additional high-level scopes.For example like this:
const { token } = await scmAuthApi.getCredentials({ url: 'https://ghe.example.com/backstage/backstage', additionalScope: { repoWrite: true, }, });The instantiation of the API can either be done with a default factory that adds support for the public providers (github.com, gitlab.com, etc.):
// in packages/app/apis.ts ScmAuth.createDefaultApiFactory();Or with a more custom setup that can add support for additional providers, for example like this:
createApiFactory({ api: scmAuthApiRef, deps: { gheAuthApi: gheAuthApiRef, githubAuthApi: githubAuthApiRef, }, factory: ({ githubAuthApi, gheAuthApi }) => ScmAuth.merge( ScmAuth.forGithub(githubAuthApi), ScmAuth.forGithub(gheAuthApi, { host: 'ghe.example.com', }), ), });The additional
gheAuthApiRefutility API can be defined either inside the app itself if it's only used for this purpose, or inside an internal common package for APIs, such as@internal/apis:const gheAuthApiRef: ApiRef<OAuthApi & ProfileInfoApi & SessionApi> = createApiRef({ id: 'internal.auth.ghe', });And then implemented using the
GithubAuthclass from@backstage/core-app-api:createApiFactory({ api: gheAuthApiRef, deps: { discoveryApi: discoveryApiRef, oauthRequestApi: oauthRequestApiRef, configApi: configApiRef, }, factory: ({ discoveryApi, oauthRequestApi, configApi }) => GithubAuth.create({ provider: { id: 'ghe', icon: ..., title: 'GHE' }, discoveryApi, oauthRequestApi, defaultScopes: ['read:user'], environment: configApi.getOptionalString('auth.environment'), }), })Finally you also need to add and configure another GitHub provider to the
auth-backendusing the provider IDghe:// Add the following options to `createRouter` in packages/backend/src/plugins/auth.ts providerFactories: { ghe: createGithubProvider(), },Other providers follow the same steps, but you will want to use the appropriate auth API implementation in the frontend, such as for example
GitlabAuth. -
Updated dependencies
- @backstage/integration@0.6.6
- @backstage/core-plugin-api@0.1.9
- @backstage/core-components@0.6.0
0.1.10
Patch Changes
- Updated dependencies
- @backstage/core-components@0.5.0
- @backstage/integration@0.6.5
- @backstage/config@0.1.10
0.1.9
Patch Changes
9f1362dcc1: Upgrade@material-ui/labto4.0.0-alpha.57.- Updated dependencies
- @backstage/core-components@0.4.2
- @backstage/integration@0.6.4
- @backstage/core-plugin-api@0.1.8
0.1.8
Patch Changes
- Updated dependencies
- @backstage/integration@0.6.3
- @backstage/core-components@0.4.0
0.1.7
Patch Changes
- Updated dependencies
- @backstage/integration@0.6.0
- @backstage/core-components@0.3.1
- @backstage/core-plugin-api@0.1.6
0.1.6
Patch Changes
- Updated dependencies
- @backstage/core-components@0.3.0
- @backstage/config@0.1.6
- @backstage/core-plugin-api@0.1.5
- @backstage/integration@0.5.9
0.1.5
Patch Changes
9d40fcb1e: - Bumpingmaterial-ui/coreversion to at least4.12.2as they made some breaking changes in later versions which brokePaginationof theTable.- Switching out
material-tableto@material-table/corefor support for the later versions ofmaterial-ui/core - This causes a minor API change to
@backstage/core-componentsas the interface forTablere-exports thepropfrom the underlyingTablecomponents. onChangeRowsPerPagehas been renamed toonRowsPerPageChangeonChangePagehas been renamed toonPageChange- Migration guide is here: https://material-table-core.com/docs/breaking-changes
- Switching out
- Updated dependencies
- @backstage/core-components@0.2.0
- @backstage/core-plugin-api@0.1.4
- @backstage/theme@0.2.9
0.1.4
Patch Changes
48c9fcd33: Migrated to use the new@backstage/core-*packages rather than@backstage/core.- Updated dependencies
- @backstage/core-plugin-api@0.1.3
0.1.3
Patch Changes
f4e3ac5ce: MoveScmIntegrationIconfrom@backstage/plugin-catalogto@backstage/integration-reactand make it customizable usingapp.getSystemIcon().- Updated dependencies [
eda9dbd5f]- @backstage/integration@0.5.6