Avro.Aws.Auth 0.1.0

dotnet add package Avro.Aws.Auth --version 0.1.0
                    
NuGet\Install-Package Avro.Aws.Auth -Version 0.1.0
                    
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="Avro.Aws.Auth" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Avro.Aws.Auth" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Avro.Aws.Auth" />
                    
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 Avro.Aws.Auth --version 0.1.0
                    
#r "nuget: Avro.Aws.Auth, 0.1.0"
                    
#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 Avro.Aws.Auth@0.1.0
                    
#: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=Avro.Aws.Auth&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Avro.Aws.Auth&version=0.1.0
                    
Install as a Cake Tool

Avro AWS Authentication

AWS authentication and credential management for .NET applications. This package provides a flexible way to manage AWS credentials and configuration in your .NET applications.

Features

  • Environment variable support for credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN)
  • Region management with fallback (AWS_REGION, AWS_DEFAULT_REGION)
  • IAM role support via AWS_ROLE_ARN
  • GitHub Actions OIDC integration
  • Dependency injection support
  • Async operations
  • Comprehensive XML documentation

Installation

dotnet add package Avro.Aws.Auth

Usage

using Avro.Aws.Auth;
using Avro.Aws.Abstractions;

// Basic usage with environment variables
var authManager = new AwsAuthManager();
string accessKeyId = await authManager.GetAccessKeyIdAsync();
string region = await authManager.GetRegionAsync();

// Custom credential provider
public class CustomCredentialProvider : IAwsCredentialProvider
{
    public Task<string> GetAccessKeyIdAsync() => Task.FromResult("your-key");
    public Task<string> GetSecretAccessKeyAsync() => Task.FromResult("your-secret");
    public Task<string?> GetSessionTokenAsync() => Task.FromResult<string?>(null);
}

// Using dependency injection
var authManager = new AwsAuthManager(new CustomCredentialProvider());

Environment Variables

  • AWS_ACCESS_KEY_ID - AWS access key
  • AWS_SECRET_ACCESS_KEY - AWS secret key
  • AWS_SESSION_TOKEN - Optional session token for temporary credentials
  • AWS_REGION - Primary AWS region setting
  • AWS_DEFAULT_REGION - Fallback AWS region setting
  • AWS_ROLE_ARN - Optional IAM role ARN to assume

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 199 10/1/2025