Serverless OAuth2/OIDC server with OpenIddict 6 and AWS Aurora v2
· 10 min read
With the recent announcement of OpenIddict 6 and AWS Aurora Serverless v2's new scaling to zero capability, we have a perfect opportunity to build a cost-effective, serverless OAuth2/OpenID Connect server.
This setup will leverage AWS Lambda for compute and Aurora v2 PostgreSQL for storage, providing enterprise-grade security and scalability while maintaining optimal cost efficiency and only incurring cost when actually in use.
Let's start by creating a new solution for our OAuth2/OIDC server.