Merge pull request #8357 from backstage/example-app-permission-integration

Example app permission integration
This commit is contained in:
MT Lewis
2021-12-22 14:32:25 +00:00
committed by GitHub
28 changed files with 619 additions and 77 deletions
+1
View File
@@ -32,6 +32,7 @@
"@backstage/core-components": "^0.8.0",
"@backstage/core-app-api": "^0.2.0",
"@backstage/core-plugin-api": "^0.3.0",
"@backstage/plugin-permission-react": "^0.1.1",
"@backstage/theme": "^0.2.14",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
@@ -62,6 +62,10 @@ import {
bitbucketAuthApiRef,
atlassianAuthApiRef,
} from '@backstage/core-plugin-api';
import {
permissionApiRef,
IdentityPermissionApi,
} from '@backstage/plugin-permission-react';
export const apis = [
createApiFactory({
@@ -296,4 +300,14 @@ export const apis = [
});
},
}),
createApiFactory({
api: permissionApiRef,
deps: {
discovery: discoveryApiRef,
identity: identityApiRef,
config: configApiRef,
},
factory: ({ config, discovery, identity }) =>
IdentityPermissionApi.create({ config, discovery, identity }),
}),
];