amazon web services - Change password using AWS.CognitoIdentityServiceProvider -


i'm trying figure out how use changepassword function of aws.cognitoidentityserviceprovider.

i need pass following params:

{   previouspassword: 'string_value', /* required */   proposedpassword: 'string_value', /* required */   accesstoken: 'string_value' } 

i use inside lambda function, how hold of access token? have cognitoidentitypoolid , cognitoidentityid use, can't understand access token is.

the identity pool id , identity id cognito federated identities concepts, while changepassword api user pools one. 2 different services - think of user pools identity provider identity pool.

the short version can access token signing in user in user pool. doing returns access token, id token, , refresh token. being said, common theme use admin versions of various user pool apis on lambda side, since may not have user credentials there.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -