mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* feat: mint UUID username with mutable email alias for UsernameAttributes pools * fix(cognito): align token claims, alias-exists, read-attributes, and not-found status with AWS * fix(cognito): align token claims, alias-exists, read-attributes, not-found status, and canonical-username revocation with AWS * fix(cognito): accept canonical UUID on RESEND, harden migration sub-minting and email validation) * fix(cognito): AliasExistsException guard check * test(cloudformation): expect 400 for Cognito ResourceNotFoundException Align the post-deletion DescribeUserPool/DescribeUserPoolClient assertions with the AWS-accurate 400 status now returned for Cognito ResourceNotFoundException. * fix(cognito): bind CUSTOM_AUTH challenge USERNAME to the session user RespondToAuthChallenge validated SECRET_HASH against the caller-supplied USERNAME while resolving the user from the session, so the two were allowed to disagree. That reduced SECRET_HASH from a per-user binding to a bare proof-of-client-secret check, and let callers pass locally against requests real Cognito rejects. Resolve the supplied USERNAME the same way sign-in does and require it to match the session user; aliases still work since the caller may legitimately send the email while the session holds the UUID. Also compare SECRET_HASH with MessageDigest.isEqual instead of String.equals so the MAC comparison does not short-circuit on the first differing byte, matching the SRP path in CognitoSrpHelper.