Files
floci/docs
Allen Sanborn 837fa24f38 fix(cognito): word unknown-user, client and auth refusals as AWS does (#9845)
Cognito user pools now word their refusals as AWS does, built in one
place (CognitoErrors). Codes and statuses are unchanged.

- An unknown user answers "User does not exist." on the admin and
  signed-in operations, and "Username/client id combination not found."
  on ForgotPassword, ConfirmForgotPassword, ConfirmSignUp and
  ResendConfirmationCode.
- "Incorrect username or password.", "Invalid Access Token",
  "Invalid Refresh Token" and "Group not found.".
- A missing app client answers "User pool client does not exist." on
  DescribeUserPoolClient and UpdateUserPoolClient, "User pool client
  <id> does not exist." elsewhere, and names the pool for another
  pool's client. The pool is checked before the client.
- UpdateUserPool and CreateUserPoolClient on a missing pool answer with
  an empty message.
- "Domain already exists.", RevokeToken's "Unsupported token type", the
  duplicate custom attribute message and the two MFA preference
  sentences.
- AdminInitiateAuth answers "Auth flow not enabled for this client" for
  a disabled flow, refresh included. A client whose flows are only the
  legacy values still refreshes.

Every by-id client lookup goes through describeUserPoolClient, and the
in-pool check through one clientInPool.
2026-11-30 20:37:29 -04:00
..
2026-03-15 17:43:56 -05:00