aws_url_signer 0.1.0 copy "aws_url_signer: ^0.1.0" to clipboard
aws_url_signer: ^0.1.0 copied to clipboard

This Dart library signs Amazon Web Services (AWS) URLs with the given credentials in contrast to signing the header entries. This is particularly helpful to connect to Amazon WebSocket API Gateway sec [...]

aws_url_signer #

This Dart library signs Amazon Web Services (AWS) URLs with the given credentials in contrast to signing the header entries. This is particularly helpful to connect to Amazon WebSocket API Gateway secured with IAM authorizer.

I created this work mainly because Amazon Amplify does not provide any easy mechanism to sign the URLs to be able to connect to secured WebSocket endpoints, unfortunately. I spent over a week between searching and reading the source codes of different projects to be able to connect my Flutter App to my AWS secured WebSocket API Gateway backend.

Now, after I got this working, I am glad to share this work, maybe it can save someone's day.

Pull Requests are welcome.

Credits further readings #

Many thanks to Ivan Djuricic, because this code is inspired by a signing code written by him in Python.

Skimming this code file also helped me to replace some critical python parts with their Dart equivalents.

A look on the official documentation Signing AWS Requests V4 from Amazon will help to understand the logic behind the code.

1
likes
20
pub points
0%
popularity

Publisher

verified publishermohammednoureldin.com

This Dart library signs Amazon Web Services (AWS) URLs with the given credentials in contrast to signing the header entries. This is particularly helpful to connect to Amazon WebSocket API Gateway secured with IAM authorizer.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

crypto, flutter, intl

More

Packages that depend on aws_url_signer