Skip to content

About

Library Demo backend - .NET 10 Web API (Auth0-secured) + SQL Server database project

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

Our Library Backend

The backend for the Our Library app: a .NET 10 minimal Web API secured with Auth0, backed by a SQL Server database project.

Part of the Our Library project. Frontend SPA: Our-Library-frontEnd (Vite + React).

Tech stack

  • .NET 10 — ASP.NET Core Minimal APIs
  • Auth0 — JWT bearer authentication (validates signature, audience, expiry)
  • SQL Server — SSDT database project (tables + stored procedures)
  • Serilog — structured logging (Console, File, Seq sinks)
  • Output caching, rate limiting, and CORS

Solution layout (LibraryDemoApp.slnx)

Project Description
TheLibraryApi Minimal API endpoints — Auth0 JWT auth, CORS, caching, rate limiting, Serilog logging
LibraryTools Data-access library and domain models
LibraryDb SQL Server Database Project — tables and stored procedures

Configuration & secrets

Secrets are not committed. They come from .NET user-secrets (and/or environment variables in production). appsettings.json ships with empty placeholders:

"ConnectionStrings": { "LibraryDb": "" },
"Auth0": { "Domain": "", "Audience": "" }

Set them locally with:

cd TheLibraryApi
dotnet user-secrets set "ConnectionStrings:LibraryDb" "<your connection string>"
dotnet user-secrets set "Auth0:Domain"   "<your-tenant>.us.auth0.com"
dotnet user-secrets set "Auth0:Audience" "<your-api-audience>"

Running

dotnet restore
dotnet run --project TheLibraryApi

The API validates the Auth0 JWT (signature, audience, expiry) on protected endpoints, so the frontend must send a valid Authorization: Bearer <token>.

Database

The schema (tables + stored procedures) lives in LibraryDb/dbo. Build/publish the LibraryDb SQL project to deploy it to your SQL Server instance.

About

Library Demo backend - .NET 10 Web API (Auth0-secured) + SQL Server database project

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages