@backstage/plugin-auth-backend 0.9.0 → 0.10.2

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,121 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
+ ## 0.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix for the previous release with missing type declarations.
8
+ - Updated dependencies
9
+ - @backstage/backend-common@0.10.9
10
+ - @backstage/catalog-client@0.7.1
11
+ - @backstage/catalog-model@0.10.1
12
+ - @backstage/config@0.1.15
13
+ - @backstage/errors@0.2.2
14
+ - @backstage/types@0.1.3
15
+ - @backstage/plugin-auth-node@0.1.2
16
+
17
+ ## 0.10.1
18
+
19
+ ### Patch Changes
20
+
21
+ - 1ed305728b: Bump `node-fetch` to version 2.6.7 and `cross-fetch` to version 3.1.5
22
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
23
+ - a31559d1f5: Bump `passport-oauth2` to version 1.6.1
24
+ - deaf6065db: Adapt to the new `CatalogApi.getLocationByRef`
25
+ - 1433045c08: Removed unused `helmet` dependency.
26
+ - 7aeb491394: Replace use of deprecated `ENTITY_DEFAULT_NAMESPACE` constant with `DEFAULT_NAMESPACE`.
27
+ - Updated dependencies
28
+ - @backstage/backend-common@0.10.8
29
+ - @backstage/catalog-client@0.7.0
30
+ - @backstage/errors@0.2.1
31
+ - @backstage/plugin-auth-node@0.1.1
32
+ - @backstage/catalog-model@0.10.0
33
+ - @backstage/config@0.1.14
34
+ - @backstage/types@0.1.2
35
+
36
+ ## 0.10.0
37
+
38
+ ### Minor Changes
39
+
40
+ - 08fcda13ef: The `callbackUrl` option of `OAuthAdapter` is now required.
41
+ - 6bc86fcf2d: The following breaking changes were made, which may imply specifically needing
42
+ to make small adjustments in your custom auth providers.
43
+
44
+ - **BREAKING**: Moved `IdentityClient`, `BackstageSignInResult`,
45
+ `BackstageIdentityResponse`, and `BackstageUserIdentity` to
46
+ `@backstage/plugin-auth-node`.
47
+ - **BREAKING**: Removed deprecated type `BackstageIdentity`, please use
48
+ `BackstageSignInResult` from `@backstage/plugin-auth-node` instead.
49
+
50
+ While moving over, `IdentityClient` was also changed in the following ways:
51
+
52
+ - **BREAKING**: Made `IdentityClient.listPublicKeys` private. It was only used
53
+ in tests, and should not be part of the API surface of that class.
54
+ - **BREAKING**: Removed the static `IdentityClient.getBearerToken`. It is now
55
+ replaced by `getBearerTokenFromAuthorizationHeader` from
56
+ `@backstage/plugin-auth-node`.
57
+ - **BREAKING**: Removed the constructor. Please use the `IdentityClient.create`
58
+ static method instead.
59
+
60
+ Since the `IdentityClient` interface is marked as experimental, this is a
61
+ breaking change without a deprecation period.
62
+
63
+ In your auth providers, you may need to update your imports and usages as
64
+ follows (example code; yours may be slightly different):
65
+
66
+ ````diff
67
+ -import { IdentityClient } from '@backstage/plugin-auth-backend';
68
+ +import {
69
+ + IdentityClient,
70
+ + getBearerTokenFromAuthorizationHeader
71
+ +} from '@backstage/plugin-auth-node';
72
+
73
+ // ...
74
+
75
+ - const identity = new IdentityClient({
76
+ + const identity = IdentityClient.create({
77
+ discovery,
78
+ issuer: await discovery.getExternalBaseUrl('auth'),
79
+ });```
80
+
81
+ // ...
82
+
83
+ const token =
84
+ - IdentityClient.getBearerToken(req.headers.authorization) ||
85
+ + getBearerTokenFromAuthorizationHeader(req.headers.authorization) ||
86
+ req.cookies['token'];
87
+ ````
88
+
89
+ ### Patch Changes
90
+
91
+ - 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
92
+
93
+ This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
94
+
95
+ - 3396bc5973: Enabled refresh for the Atlassian provider.
96
+ - 08fcda13ef: Added a new `cookieConfigurer` option to `AuthProviderConfig` that makes it possible to override the default logic for configuring OAuth provider cookies.
97
+ - Updated dependencies
98
+ - @backstage/catalog-client@0.6.0
99
+ - @backstage/backend-common@0.10.7
100
+ - @backstage/plugin-auth-node@0.1.0
101
+
102
+ ## 0.10.0-next.0
103
+
104
+ ### Minor Changes
105
+
106
+ - 08fcda13ef: The `callbackUrl` option of `OAuthAdapter` is now required.
107
+
108
+ ### Patch Changes
109
+
110
+ - 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
111
+
112
+ This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
113
+
114
+ - 3396bc5973: Enabled refresh for the Atlassian provider.
115
+ - 08fcda13ef: Added a new `cookieConfigurer` option to `AuthProviderConfig` that makes it possible to override the default logic for configuring OAuth provider cookies.
116
+ - Updated dependencies
117
+ - @backstage/backend-common@0.10.7-next.0
118
+
3
119
  ## 0.9.0
4
120
 
5
121
  ### Minor Changes