Most voted "middleware" questions
Middleware or mediator, in the field of distributed computing, is a computer program that mediates between software and other applications. It is used to move or transport information and data between programs of different communication protocols, platforms, and operating system dependencies.
Learn more…23 questions
Sort by count of
-
16
votes2
answers1660
viewsWhat is a Backend as a Service (Baas)
I would like an explanation of what a Baas is that would overcome some doubts: What is Baas? In general, they are an API and/or framework and/or library? Why? What are the main ones? What are the…
-
15
votes1
answer3432
viewsWhat is the purpose of Middleware in relation to Apis and Web Applications made in Slim?
I’m reading regarding Middleware no framework Slim, however, I could not understand the purpose of Middleware in relation to Rest Apis or Web Applications built in Slim. I was also talking to…
-
14
votes2
answers5459
viewsWhat are middleware in Nodejs?
What are middleware and how important it is for the Node platform?
-
9
votes1
answer4461
viewsWhat is a middleware for?
I see in some courses some people highlight something like a middleware, example: middleware(authentication, authorization). I found the explanation rather superficial because it was not focus of…
-
3
votes3
answers2107
viewsRoute access control - Laravel 5.1
I have some views that only clients can access, and some that only administrators can access. What I defined in this case is id_client, which if it is "1" is administrator and if it is any other…
-
2
votes0
answers64
viewsWhat is the difference between Guard() and Middleware()?
I’ve been noticing that they both basically do the same thing... I may have misunderstood, but what would be the difference between the two in Laravel?
-
1
votes2
answers2904
viewsHow to redirect the authenticated user to a specific page?
I am restricting the registration page only to be shown or accessed after the login. A friend of the stackoverflow group told me that could be doing this way: public function __construct() {…
-
1
votes1
answer629
viewsAuth::guest() always returns true | Laravel 5.4
I’m using the features offered by Standard for authentication, but even logged in the Auth::guest() command returns true, as if you were a guest. Follow the code of mine middleware <?php…
-
1
votes0
answers41
viewsLumen - Middleware running on all requests
I created a Middleware which is working perfectly, but it is running on routes that I have declared in the route group and is also running on other routes that I have not declared. Example: Route 1:…
-
1
votes1
answer644
viewsObject.<Anonymous> (Express + Middleware)
> > node index.js C:\Users\cpsep\Projetos\nodejs\semparar\node_modules\express\lib\express.js:107 > throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express…
-
1
votes1
answer31
viewsNested middleware
I would like to allow access to some pages only if user is logged in. I did so: Route::group( ['middleware' => 'usuario'], function (){ /* Minhas páginas */ }); So far so good, but I would like…
-
1
votes2
answers406
viewsPython calling super() in class that does not implement inheritance
I’m developing some middleware and as I delved into Django’s source code I came across the following: class MiddlewareMixin: def __init__(self, get_response=None): self.get_response = get_response…
-
0
votes0
answers78
viewsHow to implement Design Pattern for a microservice proxy?
Soon we will make our applications through Middleware, I know that the authentication of the systems will be through Oauth2, but I have the following doubt: Where I should start studying related…
-
0
votes1
answer153
viewsLaravel 5.4 does not have Middleware/Authenticate.php
I am following an example about jwt and Laravel 5 and I am in need of Middleware/Authenticate.php file, however, in my project there is no file(Laravel version is 5.4.36), I tried the command php…
-
0
votes1
answer83
viewsChange document after post-save middleware in Mongoose
I’m working with the Mongoose.js And I’m going to need, after I save the document to the database, to be able to change an attribute of that document. From what I understood in the Mongoose…
-
0
votes1
answer93
viewsMongooose Middleware to encrypt password in Schema
I’m having a hard time putting a Middleware in my Mongoose schema. I put it as save and am getting the error that it is not a function when I call it. See below both codes: schema.pre('save',…
-
0
votes1
answer948
viewsHow to control routes using Arable middleware?
I have a system with the following routes '\' '\expenses' '\Register' '\login' '\home' of these routes would like to make available only for user NOT authenticated ' ' and ' login', for this I…
-
0
votes0
answers88
viewsHow to pass more than one Can middleware in the Aravel?
Hello, I need to pass several defines for a route, for example admin, annual plan, and new-user, when I put can in middleware it only identifies the first parameter. Authserviceprovider.php…
-
0
votes0
answers43
viewsHow to redirect to another API when the data sent is wrong?
What happens is this, I’m making a part of the system that will do the integration of customer data. The planned idea was the following, the client will access the API to make the persistence of the…
-
0
votes2
answers383
viewsHow to export and use a Local Middleware with Express Route?
I’m having two difficulties which are: 1) I’m trying to export and use mine middleware to be used locally. 2) I would also like to know if it is possible to use a middleware for a specific request…
-
0
votes2
answers362
viewsIs it possible to block access to a middleware route?
Guys, I have a public folder with all the "public" files from my site html,css,js etc. And another folder called private with all the file private files connected with database and etc, which is a…
-
-1
votes1
answer33
viewsError setting up profile in Websphere via Eclipse
When trying to configure Websphere in Eclipse does not appear the folder where the created profiles are located (img screen-1) to select the profiles, when trying to configure via "Run Profile…
-
-1
votes2
answers247
viewsMiddleware in the Laravel to check if the user belongs to a group
Good morning and my first post here, I want to create a check in the Standard to check if the logged-in user belongs to the group ex: IT, DIRECTORATE, ADMINISTRATION etc. I already do the check on…