If you place middleware in the wrong order → it silently does nothing.
❌ Wrong
app.UseEndpoints(...); app.UseAuthentication();
✔ Correct
app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(...);
💡 Golden Rule
Auth must come BEFORE endpoints.

