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