ASP.NET Core middleware and authorization

added by DotNetKicks
1/8/2019 3:04:00 PM

1 Kicks, 199 Views

I was prompted to write this post by this question. In general, the question is about using ASP.NET Core built-in authorization to restrict access to a middleware. In ASP.NET Core the authorization mechanism is well exposed for MVC (through AuthorizeAttribute), but for middleware it's a manual job (at least for now).