AWS.AdvancedDotnetDataProviderWrapper.Authentication
2.2.0
Prefix Reserved
dotnet add package AWS.AdvancedDotnetDataProviderWrapper.Authentication --version 2.2.0
NuGet\Install-Package AWS.AdvancedDotnetDataProviderWrapper.Authentication -Version 2.2.0
<PackageReference Include="AWS.AdvancedDotnetDataProviderWrapper.Authentication" Version="2.2.0" />
<PackageVersion Include="AWS.AdvancedDotnetDataProviderWrapper.Authentication" Version="2.2.0" />
<PackageReference Include="AWS.AdvancedDotnetDataProviderWrapper.Authentication" />
paket add AWS.AdvancedDotnetDataProviderWrapper.Authentication --version 2.2.0
#r "nuget: AWS.AdvancedDotnetDataProviderWrapper.Authentication, 2.2.0"
#:package AWS.AdvancedDotnetDataProviderWrapper.Authentication@2.2.0
#addin nuget:?package=AWS.AdvancedDotnetDataProviderWrapper.Authentication&version=2.2.0
#tool nuget:?package=AWS.AdvancedDotnetDataProviderWrapper.Authentication&version=2.2.0
AWS Advanced .NET Data Provider Wrapper - Authentication
This package provides the shared AWS credential-selection infrastructure used by the AWS-authenticating plugins of the AWS Advanced .NET Data Provider Wrapper (IAM authentication, AWS Secrets Manager, and custom endpoint monitoring).
AwsCredentialsManager
By default, the AWS-authenticating plugins locate AWS credentials using the AWS SDK's default
credentials chain. If you would like to supply and manage your own credentials — for example an
AssumeRoleAWSCredentials instance whose refresh behavior you control — you can register a custom
handler with the AwsCredentialsManager:
using Amazon.Runtime;
using Amazon.SecurityToken;
using AwsWrapperDataProvider.Authentication;
// Register once at application startup. The handler receives the target endpoint and the connection
// properties, so a single handler can return different credentials per endpoint.
AwsCredentialsManager.SetCustomHandler((hostSpec, props) =>
new AssumeRoleAWSCredentials(
FallbackCredentialsFactory.GetCredentials(),
"arn:aws:iam::123456789012:role/MyRole",
"my-session"));
Return null from the handler to fall back to the AWS SDK default credentials chain. Call
AwsCredentialsManager.ResetCustomHandler() to remove a previously registered handler.
The registration is process-global, so the most recently registered handler is used.
See the AWS Credentials Configuration documentation for more details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- AWS.AdvancedDotnetDataProviderWrapper.Core (>= 2.2.0)
- AWSSDK.Core (>= 4.0.100.9)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on AWS.AdvancedDotnetDataProviderWrapper.Authentication:
| Package | Downloads |
|---|---|
|
AWS.AdvancedDotnetDataProviderWrapper.Plugin.Iam
Package Description |
|
|
AWS.AdvancedDotnetDataProviderWrapper.Plugin.SecretsManager
Package Description |
|
|
AWS.AdvancedDotnetDataProviderWrapper.Plugin.CustomEndpoint
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
See release notes at https://github.com/aws/aws-advanced-dotnet-data-provider-wrapper/releases