fix(cognito): honour case-insensitive sign-in configuration (#7831)

This commit is contained in:
James McMahon authored and GitHub committed 2026-11-09 21:13:31 -04:00
1 parent 7748d2b51f
commit faf9c4e64d
9 files changed
+531 -21

No files matched your search

+7
View File
@@ -914,6 +914,13 @@ Floci follows real Cognito semantics for pools created with `UsernameAttributes`
Pools **without** `UsernameAttributes` (classic pools, and pools using `AliasAttributes`) keep the
literal `Username` you supply, unchanged.
With `UsernameConfiguration.CaseSensitive=false`, username, email and `preferred_username`
lookups and duplicate checks ignore case. An omitted setting or `CaseSensitive=true` keeps
exact matching. Email sign-in still resolves to the same canonical UUID, and `SECRET_HASH`
uses the exact `USERNAME` sent in each request. Challenge responses follow the pool's case-sensitivity
setting too. Floci preserves stored casing in returned usernames, email addresses and
`preferred_username` values. AWS lowercases these values in case-insensitive pools.
### Token claims
Floci mirrors AWS's access-token / ID-token split: