Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update user attributes response not the same as the aws service #380

Open
ignatescustefan opened this issue Apr 6, 2023 · 1 comment
Open

Comments

@ignatescustefan
Copy link

When calling user attributes for the cognito aws service for a user that can not be found, the call returns a UserNotFoundException:

aws cognito-idp admin-update-user-attributes --user-pool-id user-pool-id --username user-notfound@gmail --user-attributes Name="custom:authChallenge",Value="test"

An error occurred (UserNotFoundException) when calling the AdminUpdateUserAttributes operation: User does not exist.

But when I am doing the same call to docker container mock, the call returns a NotAuthorizedException:

aws --endpoint http://localhost:9229 cognito-idp admin-update-user-attributes --user-pool-id local_0tj8Jz4s --username user-notfound@gmail --user-attributes Name="custom:authChallenge",Value="test"


An error occurred (NotAuthorizedException) when calling the AdminUpdateUserAttributes operation: User not authorized
@MyGuyCai
Copy link

MyGuyCai commented Jan 5, 2024

I'm getting the same with aws sdk 3, using the InitiateAuthCommand with an invalid username or password returns InvalidPasswordException with cognito-local but returns NotAuthorizedException with aws cognito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants