Skip to content

Sign HttpRequestMessage using AWS Signature v4 using request information and credentials.

License

Notifications You must be signed in to change notification settings

lgss/aws-signer-v4-dot-net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-signer-v4-dot-net

Sign HttpRequestMessage using AWS Signature v4 using request information and credentials.

Example of usage:

    var signer = new AWS4RequestSigner("accessKey", "secretKey");
    var request = new HttpRequestMessage {
        Method = HttpMethod.Get,
        RequestUri = new Uri("https://apigateway.execute-api.us-west-2.amazonaws.com/Prod/api/data")
    };

    request = await signer.Sign(request, "execute-api", "us-west-2");

    var client = new HttpClient();
    var response = await client.SendAsync(request);

    var responseStr = await response.Content.ReadAsStringAsync();

Nuget Package

Aws4RequestSigner is on NuGet.

About

Sign HttpRequestMessage using AWS Signature v4 using request information and credentials.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%