{"action":"created","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1306","repository_url":"https://api.github.com/repos/aws-amplify/amplify-js","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1306/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1306/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1306/events","html_url":"https://github.com/aws-amplify/amplify-js/issues/1306","id":344433915,"node_id":"MDU6SXNzdWUzNDQ0MzM5MTU=","number":1306,"title":"Change password basic functionality is not working","user":{"login":"andrew-aladev","id":941925,"node_id":"MDQ6VXNlcjk0MTkyNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/941925?v=4","gravatar_id":"","url":"https://api.github.com/users/andrew-aladev","html_url":"https://github.com/andrew-aladev","followers_url":"https://api.github.com/users/andrew-aladev/followers","following_url":"https://api.github.com/users/andrew-aladev/following{/other_user}","gists_url":"https://api.github.com/users/andrew-aladev/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-aladev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-aladev/subscriptions","organizations_url":"https://api.github.com/users/andrew-aladev/orgs","repos_url":"https://api.github.com/users/andrew-aladev/repos","events_url":"https://api.github.com/users/andrew-aladev/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-aladev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-25T13:02:19Z","updated_at":"2018-07-30T18:25:29Z","closed_at":null,"author_association":"NONE","body":"I started to investigate amazon amplify auth 2 days ago, created sample react application using `withAuthenticator`. I was wondering how _cognito_ works.\r\n\r\nThan I created a new user in pool using amazon console. His status is `FORCE_CHANGE_PASSWORD`. Than I tried to login using my sample application.\r\n\r\nI saw that `ChallengeName: USER_SRP_AUTH` query passed. \"Sign In\" block disappeared and `Change Password` block appeared. I've randomized new password and pressed \"Change\" button...\r\n\r\nI received the following result for `ChallengeName: NEW_PASSWORD_REQUIRED`:\r\n\r\n> {\"__type\":\"InvalidParameterException\",\"message\":\"Invalid attributes given, name is missing\"}\r\n\r\n![screenshot_2018-07-25_15-35-14](https://user-images.githubusercontent.com/941925/43201653-c28d0816-9021-11e8-9332-86601b1611fe.png)\r\n\r\nSo your basic auth functionality is not working. How it is possible for such popular _amazon_ company?\r\n\r\n![risitas](https://user-images.githubusercontent.com/941925/43202370-ff344854-9023-11e8-987a-f0bf3e0f73f9.gif)\r\n\r\n----\r\n\r\nWe couldn't integrate our new application today with auth service that doesn't work. Maybe this issue is related with https://github.com/aws/aws-sdk-net/issues/972, I don't know and I shouldn't know.\r\n\r\nPlease implement unit tests for all packages in `packages` folder starting from core packages. Than please implement integration tests for all products that you are selling. It looks like you will find thousands of issues."},"comment":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/comments/408962841","html_url":"https://github.com/aws-amplify/amplify-js/issues/1306#issuecomment-408962841","issue_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1306","id":408962841,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODk2Mjg0MQ==","user":{"login":"andrew-aladev","id":941925,"node_id":"MDQ6VXNlcjk0MTkyNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/941925?v=4","gravatar_id":"","url":"https://api.github.com/users/andrew-aladev","html_url":"https://github.com/andrew-aladev","followers_url":"https://api.github.com/users/andrew-aladev/followers","following_url":"https://api.github.com/users/andrew-aladev/following{/other_user}","gists_url":"https://api.github.com/users/andrew-aladev/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-aladev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-aladev/subscriptions","organizations_url":"https://api.github.com/users/andrew-aladev/orgs","repos_url":"https://api.github.com/users/andrew-aladev/repos","events_url":"https://api.github.com/users/andrew-aladev/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-aladev/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T18:25:29Z","updated_at":"2018-07-30T18:25:29Z","author_association":"NONE","body":"@rudyhadoux I am just ignoring current `aws-amplify-react` folder. I think it is abandoned and can be used as an old example.\r\n\r\n```\r\nconst attributes = get(user, 'challengeParam.requiredAttributes');\r\nif (attributes == null) ...\r\nconst attributesData = pick(data, attributes);\r\nAuth.completeNewPassword(user, password, requiredAttributes)...\r\n```\r\n\r\nworks fine."}}
{"actor":{"display_login":"andrew-aladev"}}