@backstage/plugin-auth-backend 0.15.1 → 0.16.0-next.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 +36 -0
- package/dist/index.cjs.js +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +52 -50
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @backstage/plugin-auth-backend
|
|
2
2
|
|
|
3
|
+
## 0.16.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 667d917488: Updated dependency `msw` to `^0.47.0`.
|
|
8
|
+
- 87ec2ba4d6: Updated dependency `msw` to `^0.46.0`.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/backend-common@0.15.1-next.2
|
|
11
|
+
- @backstage/plugin-auth-node@0.2.5-next.2
|
|
12
|
+
- @backstage/catalog-client@1.0.5-next.1
|
|
13
|
+
|
|
14
|
+
## 0.16.0-next.1
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 2fc41ebf07: Removed the previously deprecated class `AtlassianAuthProvider`. Please use `providers.atlassian.create(...)` instead.
|
|
19
|
+
- a291688bc5: Renamed the `RedirectInfo` type to `OAuthStartResponse`
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- d669d89206: Minor API signatures cleanup
|
|
24
|
+
- e1ebaeb332: Cloudflare Access Provider: Add JWT to CloudflareAccessResult
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
- @backstage/plugin-auth-node@0.2.5-next.1
|
|
27
|
+
- @backstage/backend-common@0.15.1-next.1
|
|
28
|
+
|
|
29
|
+
## 0.15.2-next.0
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- bf5e9030eb: Updated dependency `msw` to `^0.45.0`.
|
|
34
|
+
- Updated dependencies
|
|
35
|
+
- @backstage/backend-common@0.15.1-next.0
|
|
36
|
+
- @backstage/catalog-client@1.0.5-next.0
|
|
37
|
+
- @backstage/plugin-auth-node@0.2.5-next.0
|
|
38
|
+
|
|
3
39
|
## 0.15.1
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -1187,7 +1187,11 @@ class CloudflareAccessAuthProvider {
|
|
|
1187
1187
|
const sub = verifyResult.payload.sub;
|
|
1188
1188
|
const cfAccessResultStr = await ((_a = this.cache) == null ? void 0 : _a.get(`${CACHE_PREFIX}/${sub}`));
|
|
1189
1189
|
if (typeof cfAccessResultStr === "string") {
|
|
1190
|
-
|
|
1190
|
+
const result = JSON.parse(cfAccessResultStr);
|
|
1191
|
+
return {
|
|
1192
|
+
...result,
|
|
1193
|
+
token: jwt
|
|
1194
|
+
};
|
|
1191
1195
|
}
|
|
1192
1196
|
const claims = verifyResult.payload;
|
|
1193
1197
|
try {
|
|
@@ -1198,7 +1202,10 @@ class CloudflareAccessAuthProvider {
|
|
|
1198
1202
|
expiresInSeconds: claims.exp - claims.iat
|
|
1199
1203
|
};
|
|
1200
1204
|
(_b = this.cache) == null ? void 0 : _b.set(`${CACHE_PREFIX}/${sub}`, JSON.stringify(cfAccessResult));
|
|
1201
|
-
return
|
|
1205
|
+
return {
|
|
1206
|
+
...cfAccessResult,
|
|
1207
|
+
token: jwt
|
|
1208
|
+
};
|
|
1202
1209
|
} catch (err) {
|
|
1203
1210
|
throw new errors.ForwardedError(
|
|
1204
1211
|
"Failed to populate access identity information",
|
|
@@ -3238,7 +3245,6 @@ function createOriginFilter(config) {
|
|
|
3238
3245
|
};
|
|
3239
3246
|
}
|
|
3240
3247
|
|
|
3241
|
-
exports.AtlassianAuthProvider = AtlassianAuthProvider;
|
|
3242
3248
|
exports.CatalogIdentityClient = CatalogIdentityClient;
|
|
3243
3249
|
exports.OAuthAdapter = OAuthAdapter;
|
|
3244
3250
|
exports.OAuthEnvironmentHandler = OAuthEnvironmentHandler;
|