@backstage/plugin-auth-backend 0.10.0 → 0.10.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,24 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1ed305728b: Bump `node-fetch` to version 2.6.7 and `cross-fetch` to version 3.1.5
8
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
9
+ - a31559d1f5: Bump `passport-oauth2` to version 1.6.1
10
+ - deaf6065db: Adapt to the new `CatalogApi.getLocationByRef`
11
+ - 1433045c08: Removed unused `helmet` dependency.
12
+ - 7aeb491394: Replace use of deprecated `ENTITY_DEFAULT_NAMESPACE` constant with `DEFAULT_NAMESPACE`.
13
+ - Updated dependencies
14
+ - @backstage/backend-common@0.10.8
15
+ - @backstage/catalog-client@0.7.0
16
+ - @backstage/errors@0.2.1
17
+ - @backstage/plugin-auth-node@0.1.1
18
+ - @backstage/catalog-model@0.10.0
19
+ - @backstage/config@0.1.14
20
+ - @backstage/types@0.1.2
21
+
3
22
  ## 0.10.0
4
23
 
5
24
  ### Minor Changes
package/dist/index.cjs.js CHANGED
@@ -257,7 +257,7 @@ function prepareBackstageIdentityResponse(result) {
257
257
  const { sub, ent } = parseJwtPayload(result.token);
258
258
  const userEntityRef = catalogModel.stringifyEntityRef(catalogModel.parseEntityRef(sub, {
259
259
  defaultKind: "user",
260
- defaultNamespace: catalogModel.ENTITY_DEFAULT_NAMESPACE
260
+ defaultNamespace: catalogModel.DEFAULT_NAMESPACE
261
261
  }));
262
262
  return {
263
263
  ...{
@@ -434,7 +434,7 @@ class OAuthAdapter {
434
434
  }
435
435
  const userEntityRef = catalogModel.stringifyEntityRef(catalogModel.parseEntityRef(identity.id, {
436
436
  defaultKind: "user",
437
- defaultNamespace: catalogModel.ENTITY_DEFAULT_NAMESPACE
437
+ defaultNamespace: catalogModel.DEFAULT_NAMESPACE
438
438
  }));
439
439
  const token = await this.options.tokenIssuer.issueToken({
440
440
  claims: { sub: userEntityRef }