@backstage/plugin-auth-backend 0.0.0-nightly-20220212022325 → 0.0.0-nightly-20220216022224

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,18 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
- ## 0.0.0-nightly-20220212022325
3
+ ## 0.0.0-nightly-20220216022224
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
8
  - a31559d1f5: Bump `passport-oauth2` to version 1.6.1
9
+ - 7aeb491394: Replace use of deprecated `ENTITY_DEFAULT_NAMESPACE` constant with `DEFAULT_NAMESPACE`.
9
10
  - Updated dependencies
10
- - @backstage/backend-common@0.0.0-nightly-20220212022325
11
- - @backstage/catalog-client@0.0.0-nightly-20220212022325
12
- - @backstage/errors@0.0.0-nightly-20220212022325
13
- - @backstage/plugin-auth-node@0.0.0-nightly-20220212022325
14
- - @backstage/catalog-model@0.0.0-nightly-20220212022325
11
+ - @backstage/backend-common@0.0.0-nightly-20220216022224
12
+ - @backstage/catalog-client@0.0.0-nightly-20220216022224
13
+ - @backstage/errors@0.0.0-nightly-20220216022224
14
+ - @backstage/plugin-auth-node@0.0.0-nightly-20220216022224
15
+ - @backstage/catalog-model@0.0.0-nightly-20220216022224
15
16
 
16
17
  ## 0.10.0
17
18
 
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 }