furaiev / amazon-cognito-identity-dart-2

Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
MIT License
187 stars 114 forks source link

I tried use case 3 (API Gateway & Lambda) and got the following error message. (Solved in the following way) #83

Closed Jungho-Cheon closed 4 years ago

Jungho-Cheon commented 4 years ago

The error message was as follows "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. ...".

The source code is the same as yesterday, but errors have occurred and I confirm that the hash results of "String to Sign" are different. The content-type of the header used as the input value was modified as follows: "application/json; charset=utf-8" If you receive a "forbidden" response from a subsequent message, you can activate the CORS.

Thank you for reading my poor English and I hope you save time if you are in the same situation as me.

furaiev commented 4 years ago

It seems like the same issue was described here: https://github.com/furaiev/amazon-cognito-identity-dart-2/issues/68