Adding basic authentication to web api projects
In this repo, i m using various ways to support basic authentication in web api projects
1️⃣
Example01
use controller api with basic authentication based on middlewares2️⃣
Example02
use minimal api with basic authentication based on middlewares3️⃣
Example03
use controller api with basic authentication based on authorisation filters (applied globally)4️⃣
Example04
use minimal api with basic authentication based on endpoint filters (applied globally)5️⃣
Example05
use controller api with basic authentication based on authorisation filters (applied by route)6️⃣
Example06
use minimal api with basic authentication based on endpoint filters (applied by route)7️⃣
Example07
use controller api with basic authentication based on a custom authentication scheme8️⃣
Example08
use minimal api with basic authentication based on a custom authentication scheme
Tools
: net 8.0, web api, integration-testing, fluent-assertions, nsubstitute, xunit