amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 302 forks source link

AWS.Signers for Angular 2 #85

Closed kenny-lee-1992 closed 7 years ago

kenny-lee-1992 commented 7 years ago

Dear,

I need AWS.Signers.V4 for my angular application, which use MQTT to connect IoT Shadow.

So how to use/import this ?

Thanks and Best Regards,

vbudilov commented 7 years ago

Hi @minhlong , I'm not sure what you mean. How is MQTT relevant to the cognito quickstart?

kenny-lee-1992 commented 7 years ago

Hi @vbudilov ,

Thanks for your reply. After authenticated, i need to get the credential information for generate the URL ("Signature Version 4 Signing Process") to use for IoT. And i figure out that AWS support signer V4 in "node_modules\aws-sdk\lib\signers\v4.js", but i do not know how to apply to my angular 2 ?

Thanks and Best Regards

vbudilov commented 7 years ago

Hi @minhlong , take a look at this doc for more info: http://docs.aws.amazon.com/general/latest/gr/signature-v4-examples.html