@crvouga/mockingbird-service-cognito 3.10.5 → 3.10.6
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 +6 -0
- package/dist/{chunk-SLRJQUUE.js → chunk-ILKDNIZX.js} +3 -3
- package/dist/{chunk-MA4YCZNR.js → chunk-OBLOAALN.js} +3 -3
- package/dist/{chunk-MA4YCZNR.js.map → chunk-OBLOAALN.js.map} +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/server.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-SLRJQUUE.js.map → chunk-ILKDNIZX.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-cognito
|
|
2
2
|
|
|
3
|
+
## 3.10.6 (2026-11-02)
|
|
4
|
+
|
|
5
|
+
### Fixes and improvements
|
|
6
|
+
|
|
7
|
+
- reject a refresh token presented by a different app client ([46e95d1](https://github.com/crvouga/mockingbird/commit/46e95d1f8423bbdec2bcdab603bc3a865bb01cd1))
|
|
8
|
+
|
|
3
9
|
## 3.10.5 (2026-11-02)
|
|
4
10
|
|
|
5
11
|
### Fixes and improvements
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseFaultHeader,
|
|
10
10
|
resolveAdminPrefix,
|
|
11
11
|
restoreClock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OBLOAALN.js";
|
|
13
13
|
|
|
14
14
|
// ../../adapters/node/dist/cli.js
|
|
15
15
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
@@ -3057,7 +3057,7 @@ async function preflightFleet(config, options) {
|
|
|
3057
3057
|
break;
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
|
-
targets.set(name, { ...target, packageVersion: packageVersion ?? "3.10.
|
|
3060
|
+
targets.set(name, { ...target, packageVersion: packageVersion ?? "3.10.6" });
|
|
3061
3061
|
} catch (error) {
|
|
3062
3062
|
throw new Error(`service ${name}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
3063
3063
|
}
|
|
@@ -5075,4 +5075,4 @@ export {
|
|
|
5075
5075
|
createServer2 as createServer,
|
|
5076
5076
|
serveTarget
|
|
5077
5077
|
};
|
|
5078
|
-
//# sourceMappingURL=chunk-
|
|
5078
|
+
//# sourceMappingURL=chunk-ILKDNIZX.js.map
|
|
@@ -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.6" : UNRELEASED_VERSION;
|
|
3865
3865
|
|
|
3866
3866
|
// ../core/dist/webhooks.js
|
|
3867
3867
|
var json4 = (status, body) => new Response(JSON.stringify(body), {
|
|
@@ -5707,7 +5707,7 @@ var CognitoAPI = class {
|
|
|
5707
5707
|
if (flow === "REFRESH_TOKEN_AUTH") {
|
|
5708
5708
|
const session = typeof parameters.REFRESH_TOKEN === "string" ? this.state.sessions.get(parameters.REFRESH_TOKEN) : void 0;
|
|
5709
5709
|
const user2 = session && this.state.find(session.username);
|
|
5710
|
-
if (session?.kind !== "refresh" || session.revoked || session.expires <= this.now() || !user2)
|
|
5710
|
+
if (session?.kind !== "refresh" || session.clientId !== clientId || session.revoked || session.expires <= this.now() || !user2)
|
|
5711
5711
|
return this.error("NotAuthorizedException", "Invalid Refresh Token");
|
|
5712
5712
|
return this.response({
|
|
5713
5713
|
AuthenticationResult: await this.tokens(request, user2, session.clientId, false)
|
|
@@ -5908,4 +5908,4 @@ export {
|
|
|
5908
5908
|
accessKeyCredential,
|
|
5909
5909
|
CognitoAPI
|
|
5910
5910
|
};
|
|
5911
|
-
//# sourceMappingURL=chunk-
|
|
5911
|
+
//# sourceMappingURL=chunk-OBLOAALN.js.map
|