Soenneker.Aws.Signing.V4 11.0.46

Prefix Reserved
dotnet add package Soenneker.Aws.Signing.V4 --version 11.0.46
                    
NuGet\Install-Package Soenneker.Aws.Signing.V4 -Version 11.0.46
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Aws.Signing.V4" Version="11.0.46" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Aws.Signing.V4" Version="11.0.46" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Aws.Signing.V4" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Aws.Signing.V4 --version 11.0.46
                    
#r "nuget: Soenneker.Aws.Signing.V4, 11.0.46"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Aws.Signing.V4@11.0.46
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Aws.Signing.V4&version=11.0.46
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Aws.Signing.V4&version=11.0.46
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Aws.Signing.V4

A dependency-free AWS Signature Version 4 implementation for creating presigned HTTP URLs locally.

Installation

dotnet add package Soenneker.Aws.Signing.V4

Usage

using Soenneker.Aws.Signing.V4;
using Soenneker.Aws.Signing.V4.Dtos;

var signer = new AwsSignatureV4Signer();

string url = signer.PresignUrl(new AwsSignatureV4PresignRequest
{
    Endpoint = new Uri("https://examplebucket.s3.amazonaws.com"),
    Path = "/private/report.pdf",
    Method = HttpMethod.Get,
    Region = "us-east-1",
    Service = "s3",
    Credentials = new AwsSignatureV4Credentials
    {
        AccessKeyId = accessKeyId,
        SecretAccessKey = secretAccessKey,
        SessionToken = sessionToken
    },
    Expires = TimeSpan.FromMinutes(15)
});

using HttpResponseMessage response = await httpClient.GetAsync(
    url,
    cancellationToken);

Signing does not send a request. The caller is responsible for sending the same method, path, query parameters, and signed headers represented by the request.

Dependency injection

using Soenneker.Aws.Signing.V4.Registrars;

builder.Services.AddAwsSignatureV4SignerAsSingleton();

Inject IAwsSignatureV4Signer into the consuming service.

Request details

  • Expires must be between one second and seven days.
  • Path must start with / and is treated as an unescaped path. Slash characters remain path separators unless EncodePathSlashes is enabled.
  • Existing QueryParameters are included in the signature. X-Amz-* names are reserved and rejected.
  • Headers contains additional headers to sign. The caller must send the same normalized values; host is added automatically and authorization is rejected.
  • PayloadHash defaults to UNSIGNED-PAYLOAD. Confirm that the target AWS service and operation support it.
  • Set SigningTime for deterministic tests or clock-controlled signing.

Presigned URLs are bearer credentials until they expire. Do not log them, expose them in analytics, or return longer expirations than the recipient needs. Credential values remain the caller's responsibility and should come from a secure provider.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Aws.Signing.V4:

Package Downloads
Soenneker.Cloudflare.R2

A convenient utility for managing Cloudflare R2 buckets, objects, and configuration.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.46 449 11/11/2026
11.0.45 126 11/11/2026
11.0.44 1,466 11/3/2026
11.0.43 150 11/2/2026
11.0.42 869 10/27/2026
11.0.41 283 10/26/2026
11.0.40 95 10/26/2026
11.0.39 233 10/26/2026
4.0.38 118 10/26/2026
4.0.37 727 10/15/2026
4.0.36 123 10/14/2026
4.0.35 97 10/14/2026
4.0.34 139 10/14/2026
4.0.33 123 10/14/2026
4.0.32 106 10/14/2026
4.0.26 140 10/12/2026
4.0.24 132 10/12/2026
4.0.23 435 10/11/2026
4.0.22 108 10/11/2026
4.0.21 123 10/11/2026
Loading failed

Updated Multiple NuGet packages