mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(cognito): honour case-insensitive sign-in configuration (#7831)
This commit is contained in:
1 parent
7748d2b51f
commit
faf9c4e64d
9 files changed
+531
-21
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user