Stop Re-Entering Your Token in Swagger UI: EnablePersistAuthorization in ASP.NET Core

EnablePersistAuthorization in ASP.NET Core

Introduction Today, while adding an authentication improvement to one of our private APIs, I came across EnablePersistAuthorization. Honestly, I had no idea it existed, and surprisingly, I find it quite useful for local development and debugging environments. If you've ever worked with Swagger UI on a protected API, you know the pain: you open the Authorize dialog, paste … Sigue leyendo Stop Re-Entering Your Token in Swagger UI: EnablePersistAuthorization in ASP.NET Core

How I Implemented Multiple Authentication in .NET WebAPI

Introduction Hey there! These past few days, I've had to add an additional authentication scheme to my API, and as usual, I had to roll up my sleeves and dive right in. You know how it goes: one day you're peacefully sipping coffee and programming easy stuffs, and the next, you're deep-diving into .NET authentication … Sigue leyendo How I Implemented Multiple Authentication in .NET WebAPI