@backstage/plugin-auth-backend 0.19.3-next.2 → 0.19.3

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,28 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
+ ## 0.19.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 9ff7935152: Fixed bug in oidc refresh handler, if token endpoints response on refresh request does not contain a scope, the requested scope is used.
8
+ - 2d8f7e82c1: Migrated the Microsoft auth provider to new `@backstage/plugin-auth-backend-module-microsoft-provider` module package.
9
+ - Updated dependencies
10
+ - @backstage/backend-common@0.19.8
11
+ - @backstage/plugin-catalog-node@1.4.7
12
+ - @backstage/plugin-auth-node@0.4.0
13
+ - @backstage/catalog-model@1.4.3
14
+ - @backstage/errors@1.2.3
15
+ - @backstage/plugin-auth-backend-module-github-provider@0.1.3
16
+ - @backstage/plugin-auth-backend-module-gcp-iap-provider@0.2.0
17
+ - @backstage/plugin-auth-backend-module-microsoft-provider@0.1.0
18
+ - @backstage/backend-plugin-api@0.6.6
19
+ - @backstage/plugin-auth-backend-module-gitlab-provider@0.1.3
20
+ - @backstage/plugin-auth-backend-module-oauth2-provider@0.1.3
21
+ - @backstage/catalog-client@1.4.5
22
+ - @backstage/config@1.1.1
23
+ - @backstage/types@1.1.1
24
+ - @backstage/plugin-auth-backend-module-google-provider@0.1.3
25
+
3
26
  ## 0.19.3-next.2
4
27
 
5
28
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -1658,6 +1658,9 @@ class OidcAuthProvider {
1658
1658
  if (!tokenset.access_token) {
1659
1659
  throw new Error("Refresh failed");
1660
1660
  }
1661
+ if (!tokenset.scope) {
1662
+ tokenset.scope = req.scope;
1663
+ }
1661
1664
  const userinfo = await client.userinfo(tokenset.access_token);
1662
1665
  return {
1663
1666
  response: await this.handleResult({ tokenset, userinfo }),