aws AWS Developer Tools Blog ·

AWS SDK for .NET adds public SigV4 signer for custom requests

blogsecurityawsgaengineer
feature

The AWS SDK for .NET now includes a public, standalone SigV4 signer, eliminating the need to use internal SDK types or hand-write the SigV4 algorithm. This enables developers to directly add SigV4 authentication to HTTP requests or generate presigned URLs for AWS services that do not have dedicated SDK clients. The new signer is available in `AWSSDK.Core` version 4.0.101.0 or later. It is particularly useful for calling Amazon API Gateway REST APIs with IAM authorization, AWS Lambda function URLs, and services like Amazon OpenSearch Service.

  • AWS SDK for .NET adds public SigV4 signer for custom requests
  • Automate SigV4 signing for HttpClient and customize behavior
Features (1)
  • AWS SDK for .NET adds public SigV4 signer for custom requests

    The AWS SDK for .NET now includes a public SigV4 signer, enabling developers to directly add SigV4 authentication to HTTP requests or generate presigned URLs for AWS services without dedicated SDK clients. This capability streamlines custom integrations with services not covered by generated SDK clients, avoiding manual SigV4 implementation.

Notes (1)
  • Automate SigV4 signing for HttpClient and customize behavior

    The new SigV4 signer provides a `SigV4SigningHandler` for `HttpClient` to automate request signing, including body hashing. It can be registered with `IHttpClientFactory` for dependency injection and allows per-request overrides for service and region, alongside options to control payload signing behavior for streaming uploads.

Read the original announcement →

https://aws.amazon.com/blogs/developer/introducing-a-standalone-sigv4-signer-for-the-aws-sdk-for-net/

Related releases