AWS DynamoDB Operational & Persisted store for IdentityServer4
https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html
See https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
See Tools | DynamoDB | Python | Readme.md
Install-Package IdentityServer4.Contrib.AwsDynamoDB
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
// 1) setup all services (Also sets up PersistedGrant Store)
services.AddIs4DynamoDB(Configuration);
// 2) Use ClientRepository + ResourceRepository
services.AddIdentityServer()
.AddDeveloperSigningCredential()
.AddTestUsers(TestUsers.Users)
.AddClientStore<ClientRepository>()
.AddResourceStore<ResourceRepository>();
Setup.SeedDynamoDB(
services,
Configuration,
Clients.Get(),
Resources.GetApiResources(),
Resources.GetIdentityResources()
);
}
{
"AWS": {
"Region": "[region]"
},
"IdentityServer4.Contrib.AwsDynamoDB": {
"TableNamePrefix": "[prefix]"
}
}
Field | Value |
---|---|
[region] | AWS region code. E.g. ap-southeast-2 |
[prefix] | This value will prefix the POCO tables. E.g. Development- will be prefixed to Client DynamoDB table name as Development-Client |
MIT