Questions tagged [express-gateway]

Express Gateway is a microservices API Gateway built on Express.js.

Express Gateway is a bunch of components which declaratively build around Express to meet the API Gateway use case. Express Gateway’s power is harnessed the rich ecosystem around Express middleware.

118 questions
0
votes
0 answers

Socket.io integration in micro service express gateway

I am working on micro-service through the express gateway and I just want to integrate socket.io. I have already integrated the socket.io to my one microservice and I need to connect that socket to my all other microservices. How can I send a socket…
0
votes
1 answer

Express gateway set custom policy path wildcard

I've created a basic plugin that does some custom Jwt verification, and sets a 'user' object on the req in a policy. It's not really relevant, but the middleware plicy looks like this: const { getJwtFromCookies, getJwtFromHeader } =…
html_programmer
  • 18,126
  • 18
  • 85
  • 158
0
votes
2 answers

Configuration Error Nginx + ExpressGateway + Express API + Socket.io

I'm having very difficult times trying to make this work, I have a microservice architecture in place that support multiple areas of the business, now I would like to add a new microservice that will expose a socket connection to serve some realtime…
Jose Raul Perera
  • 778
  • 1
  • 7
  • 35
0
votes
1 answer

Node Express-Gateway - Is there anyway to store API endpoints , service endpoints in DB (Redis)

Instead of storing api endpoints , service endpoints in gateway config , Can i use Redis database to store endpoint info .
Ashu
  • 1
  • 2
0
votes
1 answer

Vue.js & Express-gateway CORS request

I have a problem with an HTTP request from a Vue.js component to a server with express gateway. I assume the problem is on Express Gateway because even if the microservice that should receive the request is offline, the error still shows anyway. The…
0
votes
1 answer

CORS policy returning No Access-Control-Allow-Origin' header is present on the requested resource in Express Gateway

I am using Express Gateway as my API gateway to connect with back end server. My front end runs on localhost:3000 and Express gateway runs on localhost:8080. When I try to access the back end from the front end , I get a cors error in my browser.…
0
votes
2 answers

Express Gateway - Proxy request with Bearer Token

I am trying to figure out how to get Express Gateway to use the Auth Bearer token in request, upstream to the api service. Below is my config as of right now. http: port: 8080 admin: port: 9876 host: localhost apiEndpoints: api: host:…
Aeseir
  • 7,754
  • 10
  • 58
  • 107
0
votes
1 answer

No suitable pipeline found for auth-register-login error in Express Gateway start up and get a 404 error when I POST to it

Pls help. I am new to Express Gateway. During npm start I am getting the following errors. I dont see any problems (being novice) any problems with gateway.config.yml and the way pipelines are configured. When I POST a message I get Not Found..…
ravig
  • 1
0
votes
1 answer

Need redirect my gateway to a enpoint (bad request)

well I need create a endpoint where can create a user, using express-gateway, in this have 2 ports running. gateway http server listening on :::8181 admin http server listening on 127.0.0.1:9876 I can create a user sending my information…
CoolLife
  • 1,419
  • 4
  • 17
  • 43
0
votes
1 answer

Express-Gateway: missing scopes under egContext - apiEndpoint.scopes

I want to force the add of a filed in the req.body, according to the scope of the credentials. I have 2 Apps (App1 and App2), and based on who is using my API, I want to programmatically add a field in the req. So credentials of App1 has scope app1,…
DeLac
  • 1,068
  • 13
  • 43
0
votes
1 answer

Express Gateway: add params with Request-Transformer policy, but under condition

In my Node system, I have a server exposing some API, accessible through an Express Gateway. I would like to force the add of some params in the req.body, according to the App that is using my API. To do this, I use personalized scope value. For…
DeLac
  • 1,068
  • 13
  • 43
0
votes
1 answer

Express Gateway - JWT Verification policy checkCredentialExistence for remote auth server

I am using express gateway as API Gateway middleware with the following setup. Express gateway serves as gateway only. My auth (user database) server is at a different location and I am routing all login request to the auth server to get…
Sisir
  • 2,668
  • 6
  • 47
  • 82
0
votes
1 answer

Is there a simple way to generate API documentation from express-gateway services?

Is there a simple way to generate API documentation from express-gateway services? For example using swagger? In the traditional way documentation is generated based on function's annotations, in express-gateway APIS are defined in…
0
votes
1 answer

TLS authentication with remote server

I'm trying to implement Express Gateway, what i need to do is to publish an API that routes to a TLS authenticated web service. My question is, how do i configure the gateway so i can achieve this flow: 1- Client send request to http://my.api 2-…
José Cousiño
  • 399
  • 1
  • 6
  • 15
0
votes
1 answer

How to properly include rewrite plugin into Express Gateway policies?

So I have installed my rewrite plugin, but when I try to add it to my gateway.config.yml file, I get this error: Error: data.policies[8] should be string at Config.loadConfig…