@backstage/plugin-auth-backend 0.0.0-nightly-20220210021913 → 0.0.0-nightly-20220211021943

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