DEV Community

Jay Ganatra
Jay Ganatra

Posted on • Edited on • Originally published at jayganatra.com

2

DO NOT use ASP.NET Identity for Minimal API Endpoints!

Context:

Since this morning, I’ve been trying to add custom fields to my Identity authentication in my ASP.NET blogging project. I needed to add basic fields like First Name and Last Name. While I managed to add these columns to my database table, they didn’t populate when using the register API. After spending over five hours researching and finding nothing helpful for MVC or Minimal APIs, I stumbled upon Andrew Lock's article. For more details, you can go through it!

My Recommendation

Honestly, save yourself the headache. Skip ASP.NET Identity for Minimal API Endpoints if you need custom user data fields. Consider using custom JWT authentications. You'll avoid a lot of unnecessary hassle.

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay