@backstage/plugin-auth-node 0.4.14-next.3 → 0.4.14

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @backstage/plugin-auth-node
2
2
 
3
+ ## 0.4.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 798ec37: Updated scope management for OAuth providers, where the `createOAuthAuthenticator` now accepts a new collection of `scopes` options:
8
+
9
+ - `scopes.persist` - Whether scopes should be persisted, replaces the `shouldPersistScopes` option.
10
+ - `scopes.required` - A list of required scopes that will always be requested.
11
+ - `scopes.transform` - A function that can be used to transform the scopes before they are requested.
12
+
13
+ The `createOAuthProviderFactory` has also received a new `additionalScopes` option, and will also read `additionalScopes` from the auth provider configuration. Both of these can be used to add additional scopes that should always be requested.
14
+
15
+ A significant change under the hood that this new scope management brings is that providers that persist scopes will now always merge the already granted scopes with the requested ones. The previous behavior was that the full authorization flow would not include existing scopes, while the refresh flow would only include the existing scopes.
16
+
17
+ - d44a20a: Added additional plugin metadata to `package.json`.
18
+ - Updated dependencies
19
+ - @backstage/backend-common@0.23.0
20
+ - @backstage/backend-plugin-api@0.6.19
21
+ - @backstage/catalog-client@1.6.5
22
+ - @backstage/catalog-model@1.5.0
23
+ - @backstage/config@1.2.0
24
+ - @backstage/errors@1.2.4
25
+ - @backstage/types@1.1.1
26
+
3
27
  ## 0.4.14-next.3
4
28
 
5
29
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-auth-node",
3
- "version": "0.4.14-next.3",
3
+ "version": "0.4.14",
4
4
  "backstage": {
5
5
  "role": "node-library",
6
6
  "pluginId": "auth",
@@ -37,8 +37,8 @@
37
37
  "test": "backstage-cli package test"
38
38
  },
39
39
  "dependencies": {
40
- "@backstage/backend-common": "^0.23.0-next.3",
41
- "@backstage/backend-plugin-api": "^0.6.19-next.3",
40
+ "@backstage/backend-common": "^0.23.0",
41
+ "@backstage/backend-plugin-api": "^0.6.19",
42
42
  "@backstage/catalog-client": "^1.6.5",
43
43
  "@backstage/catalog-model": "^1.5.0",
44
44
  "@backstage/config": "^1.2.0",
@@ -56,8 +56,8 @@
56
56
  "zod-to-json-schema": "^3.21.4"
57
57
  },
58
58
  "devDependencies": {
59
- "@backstage/backend-test-utils": "^0.4.0-next.3",
60
- "@backstage/cli": "^0.26.7-next.3",
59
+ "@backstage/backend-test-utils": "^0.4.0",
60
+ "@backstage/cli": "^0.26.7",
61
61
  "cookie-parser": "^1.4.6",
62
62
  "express-promise-router": "^4.1.1",
63
63
  "lodash": "^4.17.21",