Skip to content

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

@ignatescustefan

Description

@ignatescustefan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions