@backstage/backend-plugin-api 1.2.1-next.1 → 1.3.0

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,35 @@
1
1
  # @backstage/backend-plugin-api
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cf4eb13: Added `actor` property to `BackstageUserPrincipal` containing the subject of the last service (if any) who performed authentication on behalf of the user.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @backstage/plugin-auth-node@0.6.2
13
+ - @backstage/plugin-permission-node@0.9.1
14
+ - @backstage/cli-common@0.1.15
15
+ - @backstage/config@1.3.2
16
+ - @backstage/errors@1.2.7
17
+ - @backstage/types@1.2.1
18
+ - @backstage/plugin-permission-common@0.8.4
19
+
20
+ ## 1.2.1
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies
25
+ - @backstage/plugin-permission-node@0.9.0
26
+ - @backstage/plugin-auth-node@0.6.1
27
+ - @backstage/cli-common@0.1.15
28
+ - @backstage/config@1.3.2
29
+ - @backstage/errors@1.2.7
30
+ - @backstage/types@1.2.1
31
+ - @backstage/plugin-permission-common@0.8.4
32
+
3
33
  ## 1.2.1-next.1
4
34
 
5
35
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { JsonObject, HumanDuration, JsonValue } from '@backstage/types';
3
2
  import { Request, Response, Handler } from 'express';
4
3
  import { PermissionAttributes, EvaluatorRequestOptions, PermissionEvaluator, AuthorizePermissionRequest, AuthorizePermissionResponse, QueryPermissionRequest, QueryPermissionResponse, Permission } from '@backstage/plugin-permission-common';
@@ -74,6 +73,16 @@ type BackstageUserPrincipal = {
74
73
  * The entity ref of the user entity that this principal represents.
75
74
  */
76
75
  userEntityRef: string;
76
+ /**
77
+ * The service principal that issued the token on behalf of the user.
78
+ *
79
+ * @remarks
80
+ *
81
+ * This field is present in scenarios where a backend service acts on behalf
82
+ * of a user. It provides context about the intermediary service that
83
+ * facilitated the authentication.
84
+ */
85
+ actor?: BackstageServicePrincipal;
77
86
  };
78
87
  /**
79
88
  * Represents a principal that is not authenticated (for example when no token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-plugin-api",
3
- "version": "1.2.1-next.1",
3
+ "version": "1.3.0",
4
4
  "description": "Core API used by Backstage backend plugins",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -40,14 +40,14 @@
40
40
  "types": "./dist/index.d.ts",
41
41
  "typesVersions": {
42
42
  "*": {
43
- "index": [
44
- "dist/index.d.ts"
45
- ],
46
43
  "alpha": [
47
44
  "dist/alpha.d.ts"
48
45
  ],
49
46
  "testUtils": [
50
47
  "dist/testUtils.d.ts"
48
+ ],
49
+ "package.json": [
50
+ "package.json"
51
51
  ]
52
52
  }
53
53
  },
@@ -65,21 +65,21 @@
65
65
  "test": "backstage-cli package test"
66
66
  },
67
67
  "dependencies": {
68
- "@backstage/cli-common": "0.1.15",
69
- "@backstage/config": "1.3.2",
70
- "@backstage/errors": "1.2.7",
71
- "@backstage/plugin-auth-node": "0.6.1-next.1",
72
- "@backstage/plugin-permission-common": "0.8.4",
73
- "@backstage/plugin-permission-node": "0.8.9-next.1",
74
- "@backstage/types": "1.2.1",
68
+ "@backstage/cli-common": "^0.1.15",
69
+ "@backstage/config": "^1.3.2",
70
+ "@backstage/errors": "^1.2.7",
71
+ "@backstage/plugin-auth-node": "^0.6.2",
72
+ "@backstage/plugin-permission-common": "^0.8.4",
73
+ "@backstage/plugin-permission-node": "^0.9.1",
74
+ "@backstage/types": "^1.2.1",
75
75
  "@types/express": "^4.17.6",
76
76
  "@types/luxon": "^3.0.0",
77
77
  "knex": "^3.0.0",
78
78
  "luxon": "^3.0.0"
79
79
  },
80
80
  "devDependencies": {
81
- "@backstage/backend-test-utils": "1.3.1-next.1",
82
- "@backstage/cli": "0.30.1-next.0"
81
+ "@backstage/backend-test-utils": "^1.4.0",
82
+ "@backstage/cli": "^0.32.0"
83
83
  },
84
84
  "configSchema": "config.d.ts"
85
85
  }