@backstage/backend-app-api 0.6.1 → 0.6.3-next.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 +36 -0
- package/alpha/package.json +1 -1
- package/dist/index.cjs.js +16 -6
- package/dist/index.cjs.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @backstage/backend-app-api
|
|
2
2
|
|
|
3
|
+
## 0.6.3-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7e584d6: Fixed a bug where expired cookies would not be refreshed.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-common@0.21.7-next.0
|
|
10
|
+
- @backstage/config-loader@1.8.0-next.0
|
|
11
|
+
- @backstage/backend-plugin-api@0.6.17-next.0
|
|
12
|
+
- @backstage/backend-tasks@0.5.22-next.0
|
|
13
|
+
- @backstage/cli-common@0.1.13
|
|
14
|
+
- @backstage/cli-node@0.2.4
|
|
15
|
+
- @backstage/config@1.2.0
|
|
16
|
+
- @backstage/errors@1.2.4
|
|
17
|
+
- @backstage/types@1.1.1
|
|
18
|
+
- @backstage/plugin-auth-node@0.4.12-next.0
|
|
19
|
+
- @backstage/plugin-permission-node@0.7.28-next.0
|
|
20
|
+
|
|
21
|
+
## 0.6.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- e848644: Temporarily revert the rate limiting
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @backstage/plugin-auth-node@0.4.11
|
|
28
|
+
- @backstage/backend-common@0.21.6
|
|
29
|
+
- @backstage/backend-plugin-api@0.6.16
|
|
30
|
+
- @backstage/plugin-permission-node@0.7.27
|
|
31
|
+
- @backstage/backend-tasks@0.5.21
|
|
32
|
+
- @backstage/cli-common@0.1.13
|
|
33
|
+
- @backstage/cli-node@0.2.4
|
|
34
|
+
- @backstage/config@1.2.0
|
|
35
|
+
- @backstage/config-loader@1.7.0
|
|
36
|
+
- @backstage/errors@1.2.4
|
|
37
|
+
- @backstage/types@1.1.1
|
|
38
|
+
|
|
3
39
|
## 0.6.1
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -2429,13 +2429,23 @@ existingCookieExpiration_fn = async function(req) {
|
|
|
2429
2429
|
if (!existingCookie) {
|
|
2430
2430
|
return void 0;
|
|
2431
2431
|
}
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2432
|
+
try {
|
|
2433
|
+
const existingCredentials = await __privateGet$1(this, _auth).authenticate(
|
|
2434
|
+
existingCookie,
|
|
2435
|
+
{
|
|
2436
|
+
allowLimitedAccess: true
|
|
2437
|
+
}
|
|
2438
|
+
);
|
|
2439
|
+
if (!__privateGet$1(this, _auth).isPrincipal(existingCredentials, "user")) {
|
|
2440
|
+
return void 0;
|
|
2441
|
+
}
|
|
2442
|
+
return existingCredentials.expiresAt;
|
|
2443
|
+
} catch (error) {
|
|
2444
|
+
if (error.name === "AuthenticationError") {
|
|
2445
|
+
return void 0;
|
|
2446
|
+
}
|
|
2447
|
+
throw error;
|
|
2437
2448
|
}
|
|
2438
|
-
return existingCredentials.expiresAt;
|
|
2439
2449
|
};
|
|
2440
2450
|
const httpAuthServiceFactory = backendPluginApi.createServiceFactory({
|
|
2441
2451
|
service: backendPluginApi.coreServices.httpAuth,
|