u/Fenixkitdev

I made a Keycloak edition of my .NET 8 Minimal API Starter Kit [Second release]
▲ 1 r/KeyCloak+1 crossposts

I made a Keycloak edition of my .NET 8 Minimal API Starter Kit [Second release]

A few weeks ago I posted about my .NET 8 Minimal API Starter Kit (MongoDB). Today I'm launching the second edition — MongoDB + Keycloak.

It has everything from the first kit plus a fully pre-configured Keycloak authentication layer:

  • JWT Bearer configured via OIDC
  • Role-based authorization policies out of the box (Authenticated and AdminOnly)
  • OAuth2 Authorization Code + PKCE flow wired into Swagger — there's an Authorize button that actually works with real Keycloak tokens
  • Pre-built realm (realm-export.json) imported automatically at container startup — two test users already created with different roles, zero manual Keycloak configuration needed
  • 401 and 403 return structured RFC 7807 ProblemDetails, not empty HTTP responses

docker compose up and the API, MongoDB, and Keycloak are all running.

Launch price is €45 — use code FIRSTXPEOPLE for €15 off.

Checkout more details at Github FenixKit

buy at fenixkit.dev

u/Fenixkitdev — 1 day ago

Net Starter Kit

Hello, I've been a .NET dev for a while and I kept starting every new API project by rebuilding the same foundation from scratch. Repository pattern, error handling, pagination, database and Docker setup.

So i made a new solution for my recurring problem with the basics, that solution is ".NET 8 Minimal API Starter Kit"

The core idea is a "BaseRepository" with 7 overridable hooks. You inherit it for each resource and only override what your domain actually needs — everything else (CRUD, pagination, validation flow) runs automatically. Adding a new resource takes minutes.

The full hook chain for "CreateAsync" runs in this order: validate → base mapping → "OnMapCreateAsync" (server-side enrichment) → DB insert → "OnMapDetailAsync". Every hook returns "ErrorOr<T>" so if anything fails the operation aborts before touching the database.

Happy to have feedback for things that might be missing for next versions and products.

fenixkit.dev

reddit.com
u/Fenixkitdev — 5 days ago