@backstage/plugin-auth-backend 0.6.2 → 0.9.0-next.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 +82 -0
- package/dist/index.cjs.js +994 -862
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +94 -42
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
1
|
# @backstage/plugin-auth-backend
|
|
2
2
|
|
|
3
|
+
## 0.9.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cef64b1561: **BREAKING** Added `tokenManager` as a required property for the auth-backend `createRouter` function. This dependency is used to issue server tokens that are used by the `CatalogIdentityClient` when looking up users and their group membership during authentication.
|
|
8
|
+
|
|
9
|
+
These changes are **required** to `packages/backend/src/plugins/auth.ts`:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
export default async function createPlugin({
|
|
13
|
+
logger,
|
|
14
|
+
database,
|
|
15
|
+
config,
|
|
16
|
+
discovery,
|
|
17
|
+
+ tokenManager,
|
|
18
|
+
}: PluginEnvironment): Promise<Router> {
|
|
19
|
+
return await createRouter({
|
|
20
|
+
logger,
|
|
21
|
+
config,
|
|
22
|
+
database,
|
|
23
|
+
discovery,
|
|
24
|
+
+ tokenManager,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**BREAKING** The `CatalogIdentityClient` constructor now expects a `TokenManager` instead of a `TokenIssuer`. The `TokenManager` interface is used to generate a server token when [resolving a user's identity and membership through the catalog](https://backstage.io/docs/auth/identity-resolver). Using server tokens for these requests allows the auth-backend to bypass authorization checks when permissions are enabled for Backstage. This change will break apps that rely on the user tokens that were previously used by the client. Refer to the ["Backend-to-backend Authentication" tutorial](https://backstage.io/docs/tutorials/backend-to-backend-auth) for more information on server token usage.
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 28a5f9d0b1: chore(deps): bump `passport` from 0.4.1 to 0.5.2
|
|
34
|
+
|
|
35
|
+
## 0.8.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- 67349916ac: The `sub` claim in Backstage tokens generated by the default Google and OIDC sign-in resolvers are now full entity references of the format `<kind>:<namespace>/<name>`.
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- 033493a8af: Running the `auth-backend` on multiple domains, perhaps different domains depending on the `auth.environment`, was previously not possible as the `domain` name of the cookie was taken from `backend.baseUrl`. This prevented any cookies to be set in the start of the auth flow as the domain of the cookie would not match the domain of the callbackUrl configured in the OAuth app. This change checks if a provider supports custom `callbackUrl`'s to be configured in the application configuration and uses the domain from that, allowing the `domain`'s to match and the cookie to be set.
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
- @backstage/backend-common@0.10.5
|
|
46
|
+
|
|
47
|
+
## 0.7.0
|
|
48
|
+
|
|
49
|
+
### Minor Changes
|
|
50
|
+
|
|
51
|
+
- 6e92ee6267: Add new authentication provider to support the oauth2-proxy.
|
|
52
|
+
|
|
53
|
+
**BREAKING** The `AuthHandler` requires now an `AuthResolverContext` parameter. This aligns with the
|
|
54
|
+
behavior of the `SignInResolver`.
|
|
55
|
+
|
|
56
|
+
- f8496730ab: Switched the handling of the `BackstageIdentityResponse` so that the returned `identity.userEntityRef` is always a full entity reference. If `userEntityRef` was previously set to `jane`, it will now be `user:default/jane`. The `userEntityRef` in the response is parsed from the `sub` claim in the payload of the Backstage token.
|
|
57
|
+
- a53d7d8143: Update provider subs to return full entity ref.
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- f815b7e4a4: build(deps): bump `@google-cloud/firestore` from 4.15.1 to 5.0.2
|
|
62
|
+
- Updated dependencies
|
|
63
|
+
- @backstage/backend-common@0.10.4
|
|
64
|
+
- @backstage/config@0.1.13
|
|
65
|
+
- @backstage/catalog-model@0.9.10
|
|
66
|
+
- @backstage/catalog-client@0.5.5
|
|
67
|
+
|
|
68
|
+
## 0.7.0-next.0
|
|
69
|
+
|
|
70
|
+
### Minor Changes
|
|
71
|
+
|
|
72
|
+
- 6e92ee6267: Add new authentication provider to support the oauth2-proxy.
|
|
73
|
+
|
|
74
|
+
**BREAKING** The `AuthHandler` requires now an `AuthResolverContext` parameter. This aligns with the
|
|
75
|
+
behavior of the `SignInResolver`.
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- Updated dependencies
|
|
80
|
+
- @backstage/backend-common@0.10.4-next.0
|
|
81
|
+
- @backstage/config@0.1.13-next.0
|
|
82
|
+
- @backstage/catalog-model@0.9.10-next.0
|
|
83
|
+
- @backstage/catalog-client@0.5.5-next.0
|
|
84
|
+
|
|
3
85
|
## 0.6.2
|
|
4
86
|
|
|
5
87
|
### Patch Changes
|