@backstage/plugin-auth-backend 0.0.0-nightly-20220213022110 → 0.0.0-nightly-20220217022146

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,17 +1,23 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
- ## 0.0.0-nightly-20220213022110
3
+ ## 0.0.0-nightly-20220217022146
4
4
 
5
5
  ### Patch Changes
6
6
 
7
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`
8
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`.
9
13
  - Updated dependencies
10
- - @backstage/backend-common@0.0.0-nightly-20220213022110
11
- - @backstage/catalog-client@0.0.0-nightly-20220213022110
12
- - @backstage/errors@0.0.0-nightly-20220213022110
13
- - @backstage/plugin-auth-node@0.0.0-nightly-20220213022110
14
- - @backstage/catalog-model@0.0.0-nightly-20220213022110
14
+ - @backstage/backend-common@0.0.0-nightly-20220217022146
15
+ - @backstage/catalog-client@0.0.0-nightly-20220217022146
16
+ - @backstage/errors@0.0.0-nightly-20220217022146
17
+ - @backstage/plugin-auth-node@0.0.0-nightly-20220217022146
18
+ - @backstage/catalog-model@0.0.0-nightly-20220217022146
19
+ - @backstage/config@0.0.0-nightly-20220217022146
20
+ - @backstage/types@0.0.0-nightly-20220217022146
15
21
 
16
22
  ## 0.10.0
17
23
 
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 }