Adding basic authentication to web api projects
In this repo, i m using various ways to support basic authentication in web api projects
1️⃣
Example01use controller api with basic authentication based on middlewares2️⃣
Example02use minimal api with basic authentication based on middlewares3️⃣
Example03use controller api with basic authentication based on authorisation filters (applied globally)4️⃣
Example04use minimal api with basic authentication based on endpoint filters (applied globally)5️⃣
Example05use controller api with basic authentication based on authorisation filters (applied by route)6️⃣
Example06use minimal api with basic authentication based on endpoint filters (applied by route)7️⃣
Example07use controller api with basic authentication based on a custom authentication scheme8️⃣
Example08use minimal api with basic authentication based on a custom authentication scheme
Tools : net 8.0, web api, integration-testing, fluent-assertions, nsubstitute, xunit