Skip to content
pubscout

aws_signature_v4

0.6.13, released 4 months ago by aws-amplify.com

Dart implementation of AWS Signature Version 4 for signing HTTP requests.

WASM-ready
$ flutter pub add aws_signature_v4
Source repository

What it does

Provides a signer that creates AWS Signature V4 signed HTTP requests using supplied credentials. Works across web, VM, and Flutter platforms and supports wasm. The signed request can then be sent with any HTTP client.

AI-written summary of version 0.6.13, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to call AWS services directly from Dart/Flutter without using a higher‑level SDK
  • You require custom request signing for AWS services on web, mobile, or desktop

Skip it when

  • You already use a full AWS SDK that handles signing internally
  • You need a complete client library for a specific AWS service

Strengths

  • Cross‑platform support including wasm
  • No external native dependencies
  • Integrates with aws_common credential providers

Weaknesses

  • Only handles signing, you must manage HTTP transport yourself
  • Limited to AWS services; not a general purpose HTTP client

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
8
import 'package:aws_signature_v4/aws_signature_v4.dart';

const signer = AWSSigV4Signer(
  credentialsProvider: AWSCredentialsProvider.environment(),
);

final request = AWSHttpRequest(
  method: AWSHttpMethod.post,
  uri: Uri.https('cognito-idp.us-east-1.amazonaws.com', '/'),
  headers: const {
    AWSHeaders.target: 'AWSCognitoIdentityProviderService.DescribeUserPool',
    AWSHeaders.contentType: 'application/x-amz-json-1.1',
  },
  body: const [],
);

final signed = await signer.sign(request, credentialScope: AWSCredentialScope(region: 'us-east-1', service: AWSService.cognitoIdentityProvider));
// send `signed` with any HTTP client

Alternatives

Packages that do the same job and could replace aws_signature_v4.

Works with

Packages commonly used together with aws_signature_v4: ones it builds on, ones built on it, and its own family.