Top "Middleware" questions

Middleware is computer software that provides services to software applications beyond those available from the operating system.

MVC authorization inside MapWhen() is applied to all controllers

In ASP.Net Core 3.0 Preview 7, I tried to write some code as follows: public void Configure(IApplicationBuilder app) { app.MapWhen(…

authorization middleware asp.net-core-3.0
Entity Framework Core 1.0 unit of work with Asp.Net Core middleware or Mvc filter

I am using EF Core 1.0 (previously known ad EF7) and ASP.NET Core 1.0 (previously known as ASP.NET 5) for a …

middleware unit-of-work entity-framework-core asp.net-core-1.0
Read Controller and Action name in middleware .Net Core

I am writing a middleware class within my project in order to log the request data into our database. I …

c# asp.net-core middleware
Best Publish/Subscribe "Middleware"

I'm in the market for a good open source network based Pub/Sub (observer pattern) library. I haven't found any …

soa observer-pattern middleware publish-subscribe mom
What does "bindings" middleware do in Laravel 5.6?

Just as per the title. Default api middleware in Laravel 5.6 is listed in Kernel.php as: protected $middlewareGroups = [ 'api' => [ …

laravel laravel-5 middleware laravel-middleware
Slim PHP Route in Middleware

In Slim is it possible to get the current route within middleware? class Auth extends \Slim\Middleware{ public function call(){ $…

php middleware slim
Unit test Laravel middleware

I am trying to write unit tests for my middleware in Laravel. Does anyone know a tutorial, or have an …

unit-testing laravel-5 middleware
Express Req.Body Validation

I want to create a piece of express middleware looks something like this: function validate (options) { var defaultOptions = {...} , validations = _.extend(…

node.js validation express middleware
How to read request body multiple times in asp net core 2.2 middleware?

I tried this: Read request body twice and this: https://github.com/aspnet/Mvc/issues/4962 but did not work. I …

c# middleware asp.net-core-2.2
Add custom middleware to Laravel Passport endpoints

I have a standard Laravel Passport setup on 5.4 - it all works fine and is generating tokens. I protect my …

php laravel routes middleware laravel-passport