Questions tagged [middleware]

Middleware is computer software that provides services to software applications beyond those available from the operating system. It can be described as "software glue".

Middleware is a software component (or components) that sits "in the middle" between applications and the operating system. Typically, middleware will facilitate application development by providing services such as communications, file access, or thread locking that have a common Application Programming Interface (API) across multiple operating systems.

Communications Middleware is a specific kind of middleware that allows for interprocess communications (on one machine or across a network). The purpose of Communications Middleware is to simplify the designing, programming, and managing of software applications by streamlining the way these applications receive and process data. Communications Middleware simplifies writing communications software while providing sophisticated built-in features, reducing development costs.

Examples of communications middleware include:

4333 questions
1
vote
0 answers

How to use Express's RequestHandler AND inversify-express-utils's BaseMiddleware on a single controller

There are two middleware functions I'm trying to use - one is the express request handler interface (third party package - bull monitor) and the other is inversify-express-utils's BaseMiddleware (auth and admin auth middlwares). I tried to implement…
1
vote
0 answers

How to forward http traffic based on header extracted from JWT using Traefik?

I am using Traefik with Docker Swarm to forward network traffic to one of my webserver containers based on the Headers rule. The header information should be extracted from a jwt. I have used a middleware plugin developed by lion7…
1
vote
0 answers

Why does my NetSuite Create Operation not return any of the custom fields?

I have full access to the fields on NetSuite as an Administrator. There are 4 custom fields on the 'classification' record type that are not pulling into the XML Profile in Boomi. It appears that this behavior only happens with the 'classification'…
1
vote
0 answers

Express not using middleware

I've encountered some strange behaviour, by using middleware on my express backend. I try to use the action middleware function before my invalidJsonDetection middleware function in index.js. If I destructure my action middleware function it is not…
Habebit
  • 957
  • 6
  • 23
1
vote
1 answer

How to use mongoose updateMany middleware to increase performance?

SOLVED: SOLUTION AT THE BOTTOM I have the following Code where I am updating element by element: //registerCustomers.js const CustomerRegistrationCode = require("../models/CustomerRegistrationCode"); const setRegCodesToUsed = async (regCodes) => { …
swftowu69
  • 123
  • 1
  • 9
1
vote
5 answers

Laravel- Auth::check returns false in the middleware for successfull login

My login controller public function authenticate(Request $request) { $credentials = $request->validate([ 'username' => ['required'], 'password' => ['required'], ]); if…
userDuR
  • 378
  • 4
  • 14
1
vote
1 answer

How can I send sensor data from ROS to CrateDB via FIROS?

I have a vehicle with ROS installed. How can I send the sensor data of this vehicle to CrateDB via FIROS?
snkly
  • 41
  • 3
1
vote
0 answers

Nestjs MiddlewareConsumer exclude path not working in Azure function

Exclude path does not work when I wrap it up into an Azure function. See ClientInfoModule snippet below. exclude({ path :'validate', method : RequestMethod.POST }) Even though the validate is specified in the exclude, the middleware is still…
Fabii
  • 3,820
  • 14
  • 51
  • 92
1
vote
1 answer

How do i resolve Laravel Middlewares returning Object of class stdClass could not be converted to string error

My laravel middleware is behaving funny in that anytime I use a middleware, either custom or any default laravel middleware, I get this error Object of class stdClass could not be converted to string and whenever I trace the file the error is…
Kingsley Akindele
  • 311
  • 1
  • 2
  • 13
1
vote
0 answers

Registring a middleware but the MYSQL is not working

Dear all when i register my middleware in kernel file in Laravel 8 there is no MYSQL is working kindly help me i register in this group protected $middlewareGroups = [ 'web' => [ \App\Http\Middleware\EncryptCookies::class, …
1
vote
1 answer

In Rails, can middleware execute after each request?

I have no need for this feature and am only asking out of curiosity. I'm aware that middlewares run before to each request. Is it, however, reasonable to expect middleware to run after each request? If that's the case, how can we go about doing…
1
vote
2 answers

How to force a success and proceed with the request inside the JwtBearerEvents.OnAuthenticationFailed event

I have two types of authentication in my project, the first is through JWT and the second will still be implemented. In case of error with JWT authentication I need to call the second type of authentication, and in case of success, proceed with the…
1
vote
0 answers

What does exactly the CookiePolicyMiddleware do in startup.cs?

Microsoft provided here a prompt description how to use this middleware but it has no mention of what the middleware exactly does. What is good for/what does it exactly do? The code for initialising the middleware in startup.cs…
Munchkin
  • 857
  • 5
  • 24
  • 51
1
vote
1 answer

how to solve 419 PAGE EXPIRED, using laravel8 mongodb

Im using laravel 8 with jetstream authentication and bongodb before changing database from mysql to mongodb (using jenssegers/laravel-mongodb) it was everything work fine but when i use mongodb every post methode doesn't work it give me this erreur…
Hafsa
  • 29
  • 6
1
vote
1 answer

How to prevent going back to the login page using the browser's back button after a user log in?

To prevent going back to the login page using the browser's back button I made this middleware named 'PreventBackHistory' and registered it in the karnel.php file. The middleware file:
Wakil Ahmed
  • 1,053
  • 1
  • 8
  • 16