@backstage/plugin-auth-backend 0.22.1 → 0.22.3

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 CHANGED
@@ -1,5 +1,58 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
+ ## 0.22.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 038b2e6: Only consider entities of kind `User` when using `findCatalogUser` with a filter query, unless an explicit `kind` filter is provided.
8
+ - Updated dependencies
9
+ - @backstage/plugin-catalog-node@1.11.0
10
+ - @backstage/catalog-client@1.6.3
11
+ - @backstage/plugin-auth-node@0.4.11
12
+ - @backstage/backend-common@0.21.6
13
+ - @backstage/plugin-auth-backend-module-atlassian-provider@0.1.8
14
+ - @backstage/plugin-auth-backend-module-aws-alb-provider@0.1.8
15
+ - @backstage/plugin-auth-backend-module-github-provider@0.1.13
16
+ - @backstage/plugin-auth-backend-module-gitlab-provider@0.1.13
17
+ - @backstage/plugin-auth-backend-module-google-provider@0.1.13
18
+ - @backstage/plugin-auth-backend-module-microsoft-provider@0.1.11
19
+ - @backstage/plugin-auth-backend-module-oauth2-provider@0.1.13
20
+ - @backstage/plugin-auth-backend-module-oidc-provider@0.1.7
21
+ - @backstage/plugin-auth-backend-module-okta-provider@0.0.9
22
+ - @backstage/backend-plugin-api@0.6.16
23
+ - @backstage/plugin-auth-backend-module-gcp-iap-provider@0.2.11
24
+ - @backstage/plugin-auth-backend-module-oauth2-proxy-provider@0.1.9
25
+ - @backstage/catalog-model@1.4.5
26
+ - @backstage/config@1.2.0
27
+ - @backstage/errors@1.2.4
28
+ - @backstage/types@1.1.1
29
+
30
+ ## 0.22.2
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies
35
+ - @backstage/plugin-catalog-node@1.10.0
36
+ - @backstage/catalog-client@1.6.2
37
+ - @backstage/backend-common@0.21.5
38
+ - @backstage/plugin-auth-node@0.4.10
39
+ - @backstage/plugin-auth-backend-module-aws-alb-provider@0.1.7
40
+ - @backstage/plugin-auth-backend-module-oidc-provider@0.1.6
41
+ - @backstage/backend-plugin-api@0.6.15
42
+ - @backstage/catalog-model@1.4.5
43
+ - @backstage/config@1.2.0
44
+ - @backstage/errors@1.2.4
45
+ - @backstage/types@1.1.1
46
+ - @backstage/plugin-auth-backend-module-atlassian-provider@0.1.7
47
+ - @backstage/plugin-auth-backend-module-gcp-iap-provider@0.2.10
48
+ - @backstage/plugin-auth-backend-module-github-provider@0.1.12
49
+ - @backstage/plugin-auth-backend-module-gitlab-provider@0.1.12
50
+ - @backstage/plugin-auth-backend-module-google-provider@0.1.12
51
+ - @backstage/plugin-auth-backend-module-microsoft-provider@0.1.10
52
+ - @backstage/plugin-auth-backend-module-oauth2-provider@0.1.12
53
+ - @backstage/plugin-auth-backend-module-oauth2-proxy-provider@0.1.8
54
+ - @backstage/plugin-auth-backend-module-okta-provider@0.0.8
55
+
3
56
  ## 0.22.1
4
57
 
5
58
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -2017,8 +2017,19 @@ class CatalogAuthResolverContext {
2017
2017
  const res = await this.catalogApi.getEntities({ filter }, { token });
2018
2018
  result = res.items;
2019
2019
  } else if ("filter" in query) {
2020
+ const filter = [query.filter].flat().map((value) => {
2021
+ if (!Object.keys(value).some(
2022
+ (key) => key.toLocaleLowerCase("en-US") === "kind"
2023
+ )) {
2024
+ return {
2025
+ ...value,
2026
+ kind: "user"
2027
+ };
2028
+ }
2029
+ return value;
2030
+ });
2020
2031
  const res = await this.catalogApi.getEntities(
2021
- { filter: query.filter },
2032
+ { filter },
2022
2033
  { token }
2023
2034
  );
2024
2035
  result = res.items;