@backstage/plugin-auth-backend 0.5.2 → 0.6.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 +40 -0
- package/dist/index.cjs.js +1148 -1076
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +138 -96
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @backstage/plugin-auth-backend
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c88cdacc1a: Avoid ever returning OAuth refresh tokens back to the client, and always exchange refresh tokens for a new one when available for all providers.
|
|
8
|
+
|
|
9
|
+
This comes with a breaking change to the TypeScript API for custom auth providers. The `refresh` method of `OAuthHandlers` implementation must now return a `{ response, refreshToken }` object rather than a direct response. Existing `refresh` implementations are typically migrated by changing an existing return expression that looks like this:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
return await this.handleResult({
|
|
13
|
+
fullProfile,
|
|
14
|
+
params,
|
|
15
|
+
accessToken,
|
|
16
|
+
refreshToken,
|
|
17
|
+
});
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Into the following:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
return {
|
|
24
|
+
response: await this.handleResult({
|
|
25
|
+
fullProfile,
|
|
26
|
+
params,
|
|
27
|
+
accessToken,
|
|
28
|
+
}),
|
|
29
|
+
refreshToken,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- f0f81f6cc7: Replaces the usage of `got` with `node-fetch` in the `getUserPhoto` method of the Microsoft provider
|
|
36
|
+
- 2f26120a36: Update `auth0` and `onelogin` providers to allow for `authHandler` and `signIn.resolver` configuration.
|
|
37
|
+
- a9abafa9df: Fixed bug on refresh token on Okta provider, now it gets the refresh token and it sends it into providerInfo
|
|
38
|
+
- eb48e78886: Enforce cookie SSL protection when in production for auth-backend sessions
|
|
39
|
+
- Updated dependencies
|
|
40
|
+
- @backstage/test-utils@0.2.1
|
|
41
|
+
- @backstage/backend-common@0.10.1
|
|
42
|
+
|
|
3
43
|
## 0.5.2
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|