@backstage/plugin-permission-node 0.10.13-next.0 → 0.11.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 +20 -0
- package/dist/index.d.ts +2 -19
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @backstage/plugin-permission-node
|
|
2
2
|
|
|
3
|
+
## 0.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2f0519c: **BREAKING**: Cleaned up the `PolicyQueryUser` type:
|
|
8
|
+
|
|
9
|
+
- `token` — **Removed.** Was previously deprecated in favor of `credentials` with `coreServices.auth`.
|
|
10
|
+
- `expiresInSeconds` — **Removed.** Was previously deprecated.
|
|
11
|
+
- `identity` — **Removed.** Was previously deprecated in favor of `info`.
|
|
12
|
+
- `info` — **Deprecated.** Still required and populated for now; will be made optional and then removed in a future release.
|
|
13
|
+
- `credentials` — Unchanged.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/errors@1.3.1
|
|
19
|
+
- @backstage/backend-plugin-api@1.9.1
|
|
20
|
+
- @backstage/plugin-permission-common@0.9.9
|
|
21
|
+
- @backstage/config@1.3.8
|
|
22
|
+
|
|
3
23
|
## 0.10.13-next.0
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PermissionRuleParams, PermissionCriteria, PermissionCondition, ResourcePermission, ConditionalPolicyDecision, IdentifiedPermissionMessage, DefinitivePolicyDecision, AuthorizeResult, Permission, MetadataResponse as MetadataResponse$1, MetadataResponseSerializedRule as MetadataResponseSerializedRule$1, PolicyDecision, AllOfCriteria, NotCriteria, AnyOfCriteria, QueryPermissionRequest, AuthorizePermissionRequest, AuthorizePermissionResponse } from '@backstage/plugin-permission-common';
|
|
2
2
|
import { z } from 'zod/v3';
|
|
3
3
|
import express from 'express';
|
|
4
|
-
import { BackstageUserIdentity } from '@backstage/plugin-auth-node';
|
|
5
4
|
import { BackstageCredentials, BackstageUserInfo, PermissionsService, DiscoveryService, AuthService, PermissionsServiceRequestOptions } from '@backstage/backend-plugin-api';
|
|
6
5
|
import { Config } from '@backstage/config';
|
|
7
6
|
|
|
@@ -429,30 +428,14 @@ type PolicyQuery = {
|
|
|
429
428
|
* @public
|
|
430
429
|
*/
|
|
431
430
|
type PolicyQueryUser = {
|
|
432
|
-
/**
|
|
433
|
-
* The token used to authenticate the user within Backstage.
|
|
434
|
-
*
|
|
435
|
-
* @deprecated User the `credentials` field in combination with `coreServices.auth` to generate a request token instead.
|
|
436
|
-
*/
|
|
437
|
-
token: string;
|
|
438
|
-
/**
|
|
439
|
-
* The number of seconds until the token expires. If not set, it can be assumed that the token does not expire.
|
|
440
|
-
*
|
|
441
|
-
* @deprecated This field is deprecated and will be removed in a future release.
|
|
442
|
-
*/
|
|
443
|
-
expiresInSeconds?: number;
|
|
444
|
-
/**
|
|
445
|
-
* A plaintext description of the identity that is encapsulated within the token.
|
|
446
|
-
*
|
|
447
|
-
* @deprecated Use the `info` field instead.
|
|
448
|
-
*/
|
|
449
|
-
identity: BackstageUserIdentity;
|
|
450
431
|
/**
|
|
451
432
|
* The credentials of the user making the request.
|
|
452
433
|
*/
|
|
453
434
|
credentials: BackstageCredentials;
|
|
454
435
|
/**
|
|
455
436
|
* The information for the user making the request.
|
|
437
|
+
*
|
|
438
|
+
* @deprecated This field is deprecated and will be removed in a future release.
|
|
456
439
|
*/
|
|
457
440
|
info: BackstageUserInfo;
|
|
458
441
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-permission-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Common permission and authorization utilities for backend plugins",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -64,11 +64,10 @@
|
|
|
64
64
|
"test": "backstage-cli package test"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@backstage/backend-plugin-api": "1.9.1
|
|
68
|
-
"@backstage/config": "1.3.8
|
|
69
|
-
"@backstage/errors": "1.3.1
|
|
70
|
-
"@backstage/plugin-
|
|
71
|
-
"@backstage/plugin-permission-common": "0.9.9-next.0",
|
|
67
|
+
"@backstage/backend-plugin-api": "^1.9.1",
|
|
68
|
+
"@backstage/config": "^1.3.8",
|
|
69
|
+
"@backstage/errors": "^1.3.1",
|
|
70
|
+
"@backstage/plugin-permission-common": "^0.9.9",
|
|
72
71
|
"@types/express": "^4.17.6",
|
|
73
72
|
"express": "^4.22.0",
|
|
74
73
|
"express-promise-router": "^4.1.0",
|
|
@@ -76,9 +75,9 @@
|
|
|
76
75
|
"zod-to-json-schema": "^3.25.1"
|
|
77
76
|
},
|
|
78
77
|
"devDependencies": {
|
|
79
|
-
"@backstage/backend-defaults": "0.17.1
|
|
80
|
-
"@backstage/backend-test-utils": "1.11.3
|
|
81
|
-
"@backstage/cli": "0.36.2
|
|
78
|
+
"@backstage/backend-defaults": "^0.17.1",
|
|
79
|
+
"@backstage/backend-test-utils": "^1.11.3",
|
|
80
|
+
"@backstage/cli": "^0.36.2",
|
|
82
81
|
"@types/supertest": "^2.0.8",
|
|
83
82
|
"msw": "^1.0.0",
|
|
84
83
|
"supertest": "^7.0.0"
|