Skip to main content

2 posts tagged with "dynamodb"

View All Tags

Building DynamoDB Stores for OpenIddict

· 14 min read
Akhan Zhakiyanov
Lead engineer

In my previous post, I walked through setting up an OAuth2/OIDC server with OpenIddict 6, AWS Lambda, API Gateway, and Aurora Serverless v2. That worked well when SQL storage was the right fit, but I also wanted a DynamoDB backed option for workloads that are already built around AWS serverless components and need predictable request latency without managing database connections.

Serverless OAuth2 server with OpenIddict 5 and AWS DynamoDB - Part 0

· 7 min read
Akhan Zhakiyanov
Lead engineer

After succesfully running ASP.NET 8 Minimal API with Lambda Container image it's time to run something real.

And just in December 2023 Kévin Chalet announced new version of OpenIddict, the library to build your own OAuth2 / OpenID Connect server in .NET.

Officially OpenIddict supports two implementations for persistance layer:

This time we will explore how to implement fully serverless OAuth2 server using OpenIddict 5 with Lambda Container image and persistance layer backed by AWS DynamoDB

note

Due to the large scope this will be series of posts covering the following aspects:

  • OpenIddict custom stores implementation with DynamoDB
  • Fully serverless OAuth2 server sample and setup for local testing
  • CDK custom component lib for OpenIddict
  • Cost analysis and comparison with Cognito, Auth0, etc
tip

You can find source code available at https://github.com/ahanoff/OpenIddict.DynamoDb

First let's review OpenIddict concepts and components.