@backstage/plugin-auth-backend 0.15.2-next.0 → 0.16.0-next.1

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,20 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
+ ## 0.16.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - 2fc41ebf07: Removed the previously deprecated class `AtlassianAuthProvider`. Please use `providers.atlassian.create(...)` instead.
8
+ - a291688bc5: Renamed the `RedirectInfo` type to `OAuthStartResponse`
9
+
10
+ ### Patch Changes
11
+
12
+ - d669d89206: Minor API signatures cleanup
13
+ - e1ebaeb332: Cloudflare Access Provider: Add JWT to CloudflareAccessResult
14
+ - Updated dependencies
15
+ - @backstage/plugin-auth-node@0.2.5-next.1
16
+ - @backstage/backend-common@0.15.1-next.1
17
+
3
18
  ## 0.15.2-next.0
4
19
 
5
20
  ### 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
- return JSON.parse(cfAccessResultStr);
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 cfAccessResult;
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;