Build an authentication handler for a minimal API in ASP.NET