How To Add JWT Authentication To An ASP.NET Core API

Step by step guide to user authentication using ASP.NET Core 7, Identity, PostgreSQL

Jacob Toftgaard Rasmussen
Geek Culture
Published in
14 min readJan 28, 2023

--

Screenshot of the react app, (from the follow-up guide), that will make requests to the API

The goal

After completing this guide you will have created an ASP.NET 7 web API that exposes a secure endpoint. The secure endpoint can only be accessed by users who have a registered account in your…

--

--

Jacob Toftgaard Rasmussen
Geek Culture

I explore the wonderful world of software engineering. I write guides, informative articles and silly projects ;) — Keep learning!