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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -