@backstage/plugin-catalog-backend-module-msgraph 0.5.2-next.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +15 -8
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +4 -4
- package/dist/index.cjs.js +15 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +10 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-msgraph
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a4ebd513527: Revert using `baseUrl` for MS Graph provider as it breaks token retrieval
|
|
8
|
+
- 26eef93c547: Fixed msgraph catalog backend to use user.select option when fetching user from AzureAD
|
|
9
|
+
- 90469c02c8c: Renamed `microsoftGraphOrgEntityProviderCatalogModule` to `catalogModuleMicrosoftGraphOrgEntityProvider` to match the [recommended naming patterns](https://backstage.io/docs/backend-system/architecture/naming-patterns).
|
|
10
|
+
- e675f902980: Make sure to not use deprecated exports from `@backstage/plugin-catalog-backend`
|
|
11
|
+
- 928a12a9b3e: Internal refactor of `/alpha` exports.
|
|
12
|
+
- 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
|
|
13
|
+
- 2c234a89325: properly support custom graph api URL
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @backstage/backend-tasks@0.5.0
|
|
16
|
+
- @backstage/backend-common@0.18.3
|
|
17
|
+
- @backstage/plugin-catalog-node@1.3.4
|
|
18
|
+
- @backstage/backend-plugin-api@0.5.0
|
|
19
|
+
- @backstage/catalog-model@1.2.1
|
|
20
|
+
- @backstage/config@1.0.7
|
|
21
|
+
|
|
22
|
+
## 0.5.2-next.2
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 26eef93c547: Fixed msgraph catalog backend to use user.select option when fetching user from AzureAD
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/backend-tasks@0.5.0-next.2
|
|
29
|
+
- @backstage/backend-common@0.18.3-next.2
|
|
30
|
+
- @backstage/backend-plugin-api@0.4.1-next.2
|
|
31
|
+
- @backstage/plugin-catalog-backend@1.8.0-next.2
|
|
32
|
+
- @backstage/plugin-catalog-node@1.3.4-next.2
|
|
33
|
+
- @backstage/config@1.0.7-next.0
|
|
34
|
+
|
|
3
35
|
## 0.5.2-next.1
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -13,7 +13,7 @@ var fetch = require('node-fetch');
|
|
|
13
13
|
var qs = require('qs');
|
|
14
14
|
var backendTasks = require('@backstage/backend-tasks');
|
|
15
15
|
var limiterFactory = require('p-limit');
|
|
16
|
-
require('@backstage/plugin-catalog-
|
|
16
|
+
require('@backstage/plugin-catalog-node');
|
|
17
17
|
|
|
18
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
19
|
|
|
@@ -655,8 +655,8 @@ async function readMicrosoftGraphUsersInGroups(client, options) {
|
|
|
655
655
|
for await (const group of client.getGroups(
|
|
656
656
|
{
|
|
657
657
|
expand: options.groupExpand,
|
|
658
|
-
search: options.userGroupMemberSearch,
|
|
659
658
|
filter: options.userGroupMemberFilter,
|
|
659
|
+
search: options.userGroupMemberSearch,
|
|
660
660
|
select: ["id", "displayName"],
|
|
661
661
|
top: PAGE_SIZE
|
|
662
662
|
},
|
|
@@ -669,6 +669,8 @@ async function readMicrosoftGraphUsersInGroups(client, options) {
|
|
|
669
669
|
group.id,
|
|
670
670
|
{
|
|
671
671
|
expand: options.userExpand,
|
|
672
|
+
filter: options.userFilter,
|
|
673
|
+
select: options.userSelect,
|
|
672
674
|
top: PAGE_SIZE
|
|
673
675
|
},
|
|
674
676
|
options.queryMode
|
|
@@ -723,8 +725,8 @@ async function readMicrosoftGraphGroups(client, tenantId, options) {
|
|
|
723
725
|
for await (const group of client.getGroups(
|
|
724
726
|
{
|
|
725
727
|
expand: options == null ? void 0 : options.groupExpand,
|
|
726
|
-
search: options == null ? void 0 : options.groupSearch,
|
|
727
728
|
filter: options == null ? void 0 : options.groupFilter,
|
|
729
|
+
search: options == null ? void 0 : options.groupSearch,
|
|
728
730
|
select: options == null ? void 0 : options.groupSelect,
|
|
729
731
|
top: PAGE_SIZE
|
|
730
732
|
},
|
|
@@ -835,6 +837,9 @@ async function readMicrosoftGraphOrg(client, tenantId, options) {
|
|
|
835
837
|
client,
|
|
836
838
|
{
|
|
837
839
|
queryMode: options.queryMode,
|
|
840
|
+
userExpand: options.userExpand,
|
|
841
|
+
userFilter: options.userFilter,
|
|
842
|
+
userSelect: options.userSelect,
|
|
838
843
|
userGroupMemberFilter: options.userGroupMemberFilter,
|
|
839
844
|
userGroupMemberSearch: options.userGroupMemberSearch,
|
|
840
845
|
transformer: options.userTransformer,
|
|
@@ -845,9 +850,9 @@ async function readMicrosoftGraphOrg(client, tenantId, options) {
|
|
|
845
850
|
} else {
|
|
846
851
|
const { users: usersWithFilter } = await readMicrosoftGraphUsers(client, {
|
|
847
852
|
queryMode: options.queryMode,
|
|
853
|
+
userExpand: options.userExpand,
|
|
848
854
|
userFilter: options.userFilter,
|
|
849
855
|
userSelect: options.userSelect,
|
|
850
|
-
userExpand: options.userExpand,
|
|
851
856
|
transformer: options.userTransformer,
|
|
852
857
|
logger: options.logger
|
|
853
858
|
});
|
|
@@ -855,8 +860,9 @@ async function readMicrosoftGraphOrg(client, tenantId, options) {
|
|
|
855
860
|
}
|
|
856
861
|
const { groups, rootGroup, groupMember, groupMemberOf } = await readMicrosoftGraphGroups(client, tenantId, {
|
|
857
862
|
queryMode: options.queryMode,
|
|
858
|
-
|
|
863
|
+
groupExpand: options.groupExpand,
|
|
859
864
|
groupFilter: options.groupFilter,
|
|
865
|
+
groupSearch: options.groupSearch,
|
|
860
866
|
groupSelect: options.groupSelect,
|
|
861
867
|
groupTransformer: options.groupTransformer,
|
|
862
868
|
organizationTransformer: options.organizationTransformer
|
|
@@ -1026,10 +1032,11 @@ class MicrosoftGraphOrgEntityProvider {
|
|
|
1026
1032
|
provider.tenantId,
|
|
1027
1033
|
{
|
|
1028
1034
|
userExpand: provider.userExpand,
|
|
1029
|
-
groupExpand: provider.groupExpand,
|
|
1030
1035
|
userFilter: provider.userFilter,
|
|
1036
|
+
userSelect: provider.userSelect,
|
|
1031
1037
|
userGroupMemberFilter: provider.userGroupMemberFilter,
|
|
1032
1038
|
userGroupMemberSearch: provider.userGroupMemberSearch,
|
|
1039
|
+
groupExpand: provider.groupExpand,
|
|
1033
1040
|
groupFilter: provider.groupFilter,
|
|
1034
1041
|
groupSearch: provider.groupSearch,
|
|
1035
1042
|
groupSelect: provider.groupSelect,
|
|
@@ -1105,7 +1112,7 @@ function withLocations(providerId, entity) {
|
|
|
1105
1112
|
);
|
|
1106
1113
|
}
|
|
1107
1114
|
|
|
1108
|
-
const
|
|
1115
|
+
const catalogModuleMicrosoftGraphOrgEntityProvider = backendPluginApi.createBackendModule(
|
|
1109
1116
|
{
|
|
1110
1117
|
pluginId: "catalog",
|
|
1111
1118
|
moduleId: "microsoftGraphOrgEntityProvider",
|
|
@@ -1133,5 +1140,5 @@ const microsoftGraphOrgEntityProviderCatalogModule = backendPluginApi.createBack
|
|
|
1133
1140
|
}
|
|
1134
1141
|
);
|
|
1135
1142
|
|
|
1136
|
-
exports.
|
|
1143
|
+
exports.catalogModuleMicrosoftGraphOrgEntityProvider = catalogModuleMicrosoftGraphOrgEntityProvider;
|
|
1137
1144
|
//# sourceMappingURL=alpha.cjs.js.map
|