@crvouga/mockingbird-service-cognito 3.10.0 → 3.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 +17 -4
- package/README.md +1 -1
- package/dist/{chunk-SW3D5QEJ.js → chunk-DD53DYSF.js} +13 -8
- package/dist/{chunk-SW3D5QEJ.js.map → chunk-DD53DYSF.js.map} +2 -2
- package/dist/{chunk-OPIHVNH6.js → chunk-SPLUSSHQ.js} +3 -3
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/server.js +2 -2
- package/package.json +2 -2
- /package/dist/{chunk-OPIHVNH6.js.map → chunk-SPLUSSHQ.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-cognito
|
|
2
2
|
|
|
3
|
-
## 3.10.
|
|
3
|
+
## 3.10.2 (2026-11-02)
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Fixes and improvements
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- name the ID token user cognito:username and keep attributes out of the access token ([a3791c0](https://github.com/crvouga/mockingbird/commit/a3791c01af24b11bdadc285f098072723e84f86e))
|
|
8
|
+
- reopen IndexedDB durability connection after the browser force-closes it ([d0b45aa](https://github.com/crvouga/mockingbird/commit/d0b45aa1d12a55967e72b8ddc6573f5998c377ce))
|
|
9
9
|
|
|
10
10
|
### Dependencies
|
|
11
11
|
|
|
12
12
|
- `@crvouga/mockingbird-service-sqlite`
|
|
13
13
|
|
|
14
|
+
## 3.10.1 (2026-11-02)
|
|
15
|
+
|
|
16
|
+
### Fixes and improvements
|
|
17
|
+
|
|
18
|
+
- schedule packages whose tasks read another package's files ([7df459d](https://github.com/crvouga/mockingbird/commit/7df459d96132b4f84fa3553b1f907871c7e4f739))
|
|
19
|
+
|
|
20
|
+
## 3.10.0 (2026-10-24)
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
- add buffered SQL durability ([288bdcc](https://github.com/crvouga/mockingbird/commit/288bdcca84582787a54c4fdf9e803db9aac0b8d7))
|
|
25
|
+
- add efficient browser durability ([a8be579](https://github.com/crvouga/mockingbird/commit/a8be5799a883ddf6f731208e06f399410de4661a))
|
|
26
|
+
|
|
14
27
|
## 3.9.0 (2026-10-21)
|
|
15
28
|
|
|
16
29
|
### Features
|
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ await emulator.close() // after the test
|
|
|
61
61
|
|
|
62
62
|
`POST /` dispatches by `X-Amz-Target` and supports SignUp, ConfirmSignUp, ResendConfirmationCode, InitiateAuth (`USER_PASSWORD_AUTH`, `REFRESH_TOKEN_AUTH`), ForgotPassword, ConfirmForgotPassword, ChangePassword, GetUser, DeleteUser, AdminCreateUser, AdminSetUserPassword, AdminConfirmSignUp, AdminGetUser, AdminUpdateUserAttributes, AdminDeleteUser, ListUsers, AdminLinkProviderForUser, AdminAddUserToGroup, AdminRemoveUserFromGroup, and AdminUserGlobalSignOut.
|
|
63
63
|
|
|
64
|
-
Responses contain SDK-consumed Cognito fields and AWS-shaped exceptions (`__type`, `message`, HTTP status, `x-amzn-requestid`). Tokens are RS256 JWTs with Cognito issuer, subject,
|
|
64
|
+
Responses contain SDK-consumed Cognito fields and AWS-shaped exceptions (`__type`, `message`, HTTP status, `x-amzn-requestid`). Tokens are RS256 JWTs with Cognito issuer, subject, `token_use`, timestamps and groups. The ID token adds `aud`, `cognito:username`, email and linked identities; the access token adds `client_id`, `username` and `scope`, and no user attributes, as Cognito does. Discovery and JWKS are at `/<poolId>/.well-known/openid-configuration` and `/<poolId>/.well-known/jwks.json`.
|
|
65
65
|
|
|
66
66
|
### Admin and deterministic controls
|
|
67
67
|
|
|
@@ -3861,7 +3861,7 @@ var stateAdminRoutes = (routes) => {
|
|
|
3861
3861
|
};
|
|
3862
3862
|
|
|
3863
3863
|
// ../core/dist/version.js
|
|
3864
|
-
var PACKAGE_VERSION = true ? "3.10.
|
|
3864
|
+
var PACKAGE_VERSION = true ? "3.10.2" : UNRELEASED_VERSION;
|
|
3865
3865
|
|
|
3866
3866
|
// ../core/dist/webhooks.js
|
|
3867
3867
|
var json4 = (status, body) => new Response(JSON.stringify(body), {
|
|
@@ -5572,20 +5572,25 @@ var CognitoAPI = class {
|
|
|
5572
5572
|
auth_time: now,
|
|
5573
5573
|
iat: now,
|
|
5574
5574
|
exp: now + 3600,
|
|
5575
|
-
|
|
5576
|
-
email: attr(user, "email"),
|
|
5577
|
-
email_verified: attr(user, "email_verified") === "true",
|
|
5578
|
-
...user.groups.length ? { "cognito:groups": user.groups } : {},
|
|
5579
|
-
...identities.length ? { identities } : {}
|
|
5575
|
+
...user.groups.length ? { "cognito:groups": user.groups } : {}
|
|
5580
5576
|
};
|
|
5581
5577
|
const signer = new CognitoSigner((await this.keyRing())[0]);
|
|
5582
5578
|
const access = await signer.sign({
|
|
5583
5579
|
...common,
|
|
5580
|
+
username: user.username,
|
|
5584
5581
|
client_id: clientId,
|
|
5585
5582
|
token_use: "access",
|
|
5586
5583
|
scope: "aws.cognito.signin.user.admin"
|
|
5587
5584
|
});
|
|
5588
|
-
const id = await signer.sign({
|
|
5585
|
+
const id = await signer.sign({
|
|
5586
|
+
...common,
|
|
5587
|
+
"cognito:username": user.username,
|
|
5588
|
+
email: attr(user, "email"),
|
|
5589
|
+
email_verified: attr(user, "email_verified") === "true",
|
|
5590
|
+
...identities.length ? { identities } : {},
|
|
5591
|
+
aud: clientId,
|
|
5592
|
+
token_use: "id"
|
|
5593
|
+
});
|
|
5589
5594
|
this.state.sessions.insert(access, {
|
|
5590
5595
|
username: user.username,
|
|
5591
5596
|
clientId,
|
|
@@ -5903,4 +5908,4 @@ export {
|
|
|
5903
5908
|
accessKeyCredential,
|
|
5904
5909
|
CognitoAPI
|
|
5905
5910
|
};
|
|
5906
|
-
//# sourceMappingURL=chunk-
|
|
5911
|
+
//# sourceMappingURL=chunk-DD53DYSF.js.map
|