Build an authentication handler for a minimal API in ASP.NET Core
https://nordot.app/1159085953417003089