Skip to content

ASP.NET Core Web API Audit Microservice Template using PostgreSQL, MassTranist with AmazonSQS, JWT Auth

License

Notifications You must be signed in to change notification settings

dmamulashvili/webapi-msa-audit-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webapi-msa-audit-template

ASP.NET Core Web API Audit Microservice Template using PostgreSQL, MassTranist with AmazonSQS, JWT Auth

Install

Clone repo

git clone https://github.com/dmamulashvili/webapi-msa-audit-template.git

Install template

cd webapi-msa-audit-template
dotnet new --install .

Create Solution

cd /<DIRECTORY_TO_CREATE_SOLUTION_AT>
dotnet new webapi-msa-audit -o "MyCompany.MyProject.MyAudit"

Configure:

Update PostgreSQL connection string in case you're not using local one.

"ConnectionStrings": {
  "AuditDbContext": "Server=localhost;Port=5432;Database=MyCompany.MyProject.MyAuditDb;User Id=postgres;password=postgres"
},

Create aws user with Programmatic access & read/write permissions to SNS/SQS.

Warning
The following characters are accepted in QueueName: alphanumeric characters, hyphens (-), and underscores (_).

"AmazonSqsConfiguration": {
  "AccessKey": "",
  "SecretKey": "",
  "RegionEndpointSystemName": "eu-central-1",
  "Scope": "MyProject",
  "QueueName" : "Audit_API"
},

Configure JWT

Warning
ValidateAudience is disabled by default in Program.cs, you can leave it empty.

"JWT": {
  "ValidAudience": "",
  "ValidIssuer": "",
  "Secret": ""
}

Note
ASP.NET Core Web API Microservice template using Clean Architecture & CQRS: https://github.com/dmamulashvili/webapi-msa-template.git

About

ASP.NET Core Web API Audit Microservice Template using PostgreSQL, MassTranist with AmazonSQS, JWT Auth

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published