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

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,10 +1,70 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
- ## 0.0.0-nightly-20220209022121
3
+ ## 0.0.0-nightly-20220213022110
4
+
5
+ ### Patch Changes
6
+
7
+ - 1ed305728b: Bump `node-fetch` to version 2.6.7 and `cross-fetch` to version 3.1.5
8
+ - a31559d1f5: Bump `passport-oauth2` to version 1.6.1
9
+ - 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
15
+
16
+ ## 0.10.0
4
17
 
5
18
  ### Minor Changes
6
19
 
7
20
  - 08fcda13ef: The `callbackUrl` option of `OAuthAdapter` is now required.
21
+ - 6bc86fcf2d: The following breaking changes were made, which may imply specifically needing
22
+ to make small adjustments in your custom auth providers.
23
+
24
+ - **BREAKING**: Moved `IdentityClient`, `BackstageSignInResult`,
25
+ `BackstageIdentityResponse`, and `BackstageUserIdentity` to
26
+ `@backstage/plugin-auth-node`.
27
+ - **BREAKING**: Removed deprecated type `BackstageIdentity`, please use
28
+ `BackstageSignInResult` from `@backstage/plugin-auth-node` instead.
29
+
30
+ While moving over, `IdentityClient` was also changed in the following ways:
31
+
32
+ - **BREAKING**: Made `IdentityClient.listPublicKeys` private. It was only used
33
+ in tests, and should not be part of the API surface of that class.
34
+ - **BREAKING**: Removed the static `IdentityClient.getBearerToken`. It is now
35
+ replaced by `getBearerTokenFromAuthorizationHeader` from
36
+ `@backstage/plugin-auth-node`.
37
+ - **BREAKING**: Removed the constructor. Please use the `IdentityClient.create`
38
+ static method instead.
39
+
40
+ Since the `IdentityClient` interface is marked as experimental, this is a
41
+ breaking change without a deprecation period.
42
+
43
+ In your auth providers, you may need to update your imports and usages as
44
+ follows (example code; yours may be slightly different):
45
+
46
+ ````diff
47
+ -import { IdentityClient } from '@backstage/plugin-auth-backend';
48
+ +import {
49
+ + IdentityClient,
50
+ + getBearerTokenFromAuthorizationHeader
51
+ +} from '@backstage/plugin-auth-node';
52
+
53
+ // ...
54
+
55
+ - const identity = new IdentityClient({
56
+ + const identity = IdentityClient.create({
57
+ discovery,
58
+ issuer: await discovery.getExternalBaseUrl('auth'),
59
+ });```
60
+
61
+ // ...
62
+
63
+ const token =
64
+ - IdentityClient.getBearerToken(req.headers.authorization) ||
65
+ + getBearerTokenFromAuthorizationHeader(req.headers.authorization) ||
66
+ req.cookies['token'];
67
+ ````
8
68
 
9
69
  ### Patch Changes
10
70
 
@@ -15,7 +75,9 @@
15
75
  - 3396bc5973: Enabled refresh for the Atlassian provider.
16
76
  - 08fcda13ef: Added a new `cookieConfigurer` option to `AuthProviderConfig` that makes it possible to override the default logic for configuring OAuth provider cookies.
17
77
  - Updated dependencies
18
- - @backstage/backend-common@0.0.0-nightly-20220209022121
78
+ - @backstage/catalog-client@0.6.0
79
+ - @backstage/backend-common@0.10.7
80
+ - @backstage/plugin-auth-node@0.1.0
19
81
 
20
82
  ## 0.10.0-next.0
21
83