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.
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.
- isolate_channel
Communication channels for isolates based on Flutter's platform channels.
82Compare - cryptography_plus
Cryptographic algorithms for encryption, signatures, key agreement, and hashing across platforms.
68Compare - async_field
Async fields with observable values, caching and stale handling for any data source
68Compare - cryptography
Cross‑platform cryptographic algorithms for Dart and Flutter.
67Compare
Works with
Packages commonly used together with aws_signature_v4: ones it builds on, ones built on it, and its own family.
- cryptoaws_signature_v4 depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- asyncaws_signature_v4 depends on itUtility classes and helpers that extend Dart's async library.
- json_annotationaws_signature_v4 depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- convertaws_signature_v4 depends on itEncoders and decoders for converting between different data representations.
- amplify_coreBuilt on aws_signature_v4Base package containing common types and utilities for AWS Amplify Flutter packages.
- dart_agent_coreBuilt on aws_signature_v4Mobile-first Dart library for building stateful, tool-using AI agents with LLM and MCP support.
- cloudflareBuilt on aws_signature_v4Dart SDK and client for Cloudflare APIs including Images, Stream, Live Inputs, and R2 storage.