@backstage/plugin-auth-backend 0.0.0-nightly-202201921950 → 0.0.0-nightly-202202022734
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 +8 -5
- package/dist/index.cjs.js +11 -5
- package/dist/index.cjs.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @backstage/plugin-auth-backend
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-202202022734
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -9,13 +9,16 @@
|
|
|
9
9
|
**BREAKING** The `AuthHandler` requires now an `AuthResolverContext` parameter. This aligns with the
|
|
10
10
|
behavior of the `SignInResolver`.
|
|
11
11
|
|
|
12
|
+
- a53d7d8143: Update provider subs to return full entity ref.
|
|
13
|
+
|
|
12
14
|
### Patch Changes
|
|
13
15
|
|
|
16
|
+
- f815b7e4a4: build(deps): bump `@google-cloud/firestore` from 4.15.1 to 5.0.2
|
|
14
17
|
- Updated dependencies
|
|
15
|
-
- @backstage/backend-common@0.0.0-nightly-
|
|
16
|
-
- @backstage/config@0.0.0-nightly-
|
|
17
|
-
- @backstage/catalog-model@0.0.0-nightly-
|
|
18
|
-
- @backstage/catalog-client@0.0.0-nightly-
|
|
18
|
+
- @backstage/backend-common@0.0.0-nightly-202202022734
|
|
19
|
+
- @backstage/config@0.0.0-nightly-202202022734
|
|
20
|
+
- @backstage/catalog-model@0.0.0-nightly-202202022734
|
|
21
|
+
- @backstage/catalog-client@0.0.0-nightly-202202022734
|
|
19
22
|
|
|
20
23
|
## 0.7.0-next.0
|
|
21
24
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -1211,7 +1211,10 @@ const githubDefaultSignInResolver = async (info, ctx) => {
|
|
|
1211
1211
|
const { fullProfile } = info.result;
|
|
1212
1212
|
const userId = fullProfile.username || fullProfile.id;
|
|
1213
1213
|
const token = await ctx.tokenIssuer.issueToken({
|
|
1214
|
-
claims: {
|
|
1214
|
+
claims: {
|
|
1215
|
+
sub: `user:default/${userId}`,
|
|
1216
|
+
ent: [`user:default/${userId}`]
|
|
1217
|
+
}
|
|
1215
1218
|
});
|
|
1216
1219
|
return { id: userId, token };
|
|
1217
1220
|
};
|
|
@@ -1278,7 +1281,7 @@ const gitlabDefaultSignInResolver = async (info, ctx) => {
|
|
|
1278
1281
|
id = profile.email.split("@")[0];
|
|
1279
1282
|
}
|
|
1280
1283
|
const token = await ctx.tokenIssuer.issueToken({
|
|
1281
|
-
claims: { sub: id
|
|
1284
|
+
claims: { sub: `user:default/${id}`, ent: [`user:default/${id}`] }
|
|
1282
1285
|
});
|
|
1283
1286
|
return { id, token };
|
|
1284
1287
|
};
|
|
@@ -1662,7 +1665,10 @@ const microsoftDefaultSignInResolver = async (info, ctx) => {
|
|
|
1662
1665
|
}
|
|
1663
1666
|
const userId = profile.email.split("@")[0];
|
|
1664
1667
|
const token = await ctx.tokenIssuer.issueToken({
|
|
1665
|
-
claims: {
|
|
1668
|
+
claims: {
|
|
1669
|
+
sub: `user:default/${userId}`,
|
|
1670
|
+
ent: [`user:default/${userId}`]
|
|
1671
|
+
}
|
|
1666
1672
|
});
|
|
1667
1673
|
return { id: userId, token };
|
|
1668
1674
|
};
|
|
@@ -1807,7 +1813,7 @@ const oAuth2DefaultSignInResolver$1 = async (info, ctx) => {
|
|
|
1807
1813
|
}
|
|
1808
1814
|
const userId = profile.email.split("@")[0];
|
|
1809
1815
|
const token = await ctx.tokenIssuer.issueToken({
|
|
1810
|
-
claims: { sub: userId
|
|
1816
|
+
claims: { sub: `user:default/${userId}`, ent: [`user:default/${userId}`] }
|
|
1811
1817
|
});
|
|
1812
1818
|
return { id: userId, token };
|
|
1813
1819
|
};
|
|
@@ -2545,7 +2551,7 @@ const oktaDefaultSignInResolver = async (info, ctx) => {
|
|
|
2545
2551
|
}
|
|
2546
2552
|
const userId = profile.email.split("@")[0];
|
|
2547
2553
|
const token = await ctx.tokenIssuer.issueToken({
|
|
2548
|
-
claims: { sub: userId
|
|
2554
|
+
claims: { sub: `user:default/${userId}`, ent: [`user:default/${userId}`] }
|
|
2549
2555
|
});
|
|
2550
2556
|
return { id: userId, token };
|
|
2551
2557
|
};
|