fix(apigatewayv2): verify tokens from Floci's own Cognito pools in-process #10

Merged
Zakaria merged 1 commits from fix/apigatewayv2-local-cognito-issuer into main 2026-10-25 13:49:42 +00:00

1 Commits

Author SHA1 Message Date
Zakaria d8d94a773d fix(apigatewayv2): verify tokens from Floci's own Cognito pools in-process
A JWT authorizer on one of Floci's own user pools could never pass: the pool's
issuer is Floci's base URL (plain HTTP on localhost or a Compose service name),
and the verifier only fetches discovery and JWKS documents over HTTPS or from a
private IP literal. When the configured issuer is exactly one of this
emulator's pool issuers, read the pool's signing keys directly; they are the
keys it publishes at its JWKS URL. Every other issuer keeps the strict fetch.
2026-10-25 08:57:05 -04:00