Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hypeatei
· 2y ago · 0 comments
.NET web apps / APIs have an option where you can require authorization on all controllers (and their actions) by default. If you need an anonymous controller/action, you can use the `[AllowAnonymous]` attribute on it.
Comments
[–]
api_or_ipa
2y ago
You can easily do the same with most (all?) routers using middleware. Whether you get it slotted in your roadmap is a different story.