AspNetCore.Identity.AmazonDynamoDB
2.0.1
dotnet add package AspNetCore.Identity.AmazonDynamoDB --version 2.0.1
NuGet\Install-Package AspNetCore.Identity.AmazonDynamoDB -Version 2.0.1
<PackageReference Include="AspNetCore.Identity.AmazonDynamoDB" Version="2.0.1" />
<PackageVersion Include="AspNetCore.Identity.AmazonDynamoDB" Version="2.0.1" />
<PackageReference Include="AspNetCore.Identity.AmazonDynamoDB" />
paket add AspNetCore.Identity.AmazonDynamoDB --version 2.0.1
#r "nuget: AspNetCore.Identity.AmazonDynamoDB, 2.0.1"
#:package AspNetCore.Identity.AmazonDynamoDB@2.0.1
#addin nuget:?package=AspNetCore.Identity.AmazonDynamoDB&version=2.0.1
#tool nuget:?package=AspNetCore.Identity.AmazonDynamoDB&version=2.0.1
AspNetCore.Identity.AmazonDynamoDB
An ASP.NET Core Identity 9.0 provider for DynamoDB.
Getting Started
You can install the latest version via Nuget:
> dotnet add package AspNetCore.Identity.AmazonDynamoDB
Then you use the stores by calling AddDynamoDbStores on IdentityBuilder:
services
.AddIdentityCore<DynamoDbUser>()
.AddRoles<DynamoDbRole>()
.AddDynamoDbStores()
.Configure(options =>
{
options.BillingMode = BillingMode.PROVISIONED; // Default is BillingMode.PAY_PER_REQUEST
options.ProvisionedThroughput = new ProvisionedThroughput
{
ReadCapacityUnits = 5, // Default is 1
WriteCapacityUnits = 5, // Default is 1
};
options.DefaultTableName = "my-custom-identity-table-name"; // Default is identity
});
Finally, you need to ensure that tables and indexes have been added:
AspNetCoreIdentityDynamoDbSetup.EnsureInitialized(serviceProvider);
Or asynchronously:
await AspNetCoreIdentityDynamoDbSetup.EnsureInitializedAsync(serviceProvider);
Tests
To run the tests, you need to have DynamoDB running locally on localhost:8000. This can easily be done using Docker and the following command:
docker run -p 8000:8000 amazon/dynamodb-local
Adding Attributes
To add custom attributes to the user or role model, you would need to create a new class that extends the DynamoDbUser or DynamoDbRole and adds the needed additional attributes.
public class CustomUser : DynamoDbUser
{
public string? ProfilePictureUrl { get; set; }
}
Then you need to use your new classes when adding the DynamoDB stores:
services
.AddIdentityCore<CustomUser>()
.AddRoles<CustomRole>()
.AddDynamoDbStores();
| 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 is compatible. 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
- AWSSDK.DynamoDBv2 (>= 4.0.9.2)
- Microsoft.Extensions.DependencyInjection.AutoActivation (>= 9.10.0)
- Microsoft.Extensions.Identity.Stores (>= 9.0.10)
-
net9.0
- AWSSDK.DynamoDBv2 (>= 4.0.9.2)
- Microsoft.Extensions.DependencyInjection.AutoActivation (>= 9.10.0)
- Microsoft.Extensions.Identity.Stores (>= 9.0.10)
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 |
|---|---|---|
| 2.0.1 | 262 | 10/28/2025 |
| 2.0.0 | 611 | 2/2/2025 |
| 1.2.4 | 1,025 | 10/4/2024 |
| 1.2.3 | 186 | 10/4/2024 |
| 1.2.1 | 260 | 9/26/2024 |
| 1.2.0 | 836 | 7/7/2024 |
| 1.1.3 | 997 | 3/23/2024 |
| 1.1.2 | 286 | 1/22/2024 |
| 1.1.1 | 205 | 1/21/2024 |
| 1.1.0 | 309 | 11/27/2023 |
| 1.0.2 | 552 | 10/29/2023 |
| 1.0.1 | 1,242 | 1/28/2023 |
| 1.0.0 | 508 | 1/6/2023 |
| 0.2.0 | 555 | 10/15/2022 |
| 0.1.3 | 518 | 10/5/2022 |
| 0.1.2 | 487 | 10/5/2022 |
| 0.1.1 | 487 | 10/2/2022 |
| 0.1.0 | 485 | 10/2/2022 |