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
1
vote
1 answer

Integrating Fusionauth with Express Gateway

I'd like to implement a (small) microservice infrastructure, separating the app business logic (domain-related) from the tedious task of user authentication and api key management. In my scenario, I have some registered Users which belong to some…
La Muerte Peluda
  • 1,648
  • 1
  • 11
  • 8
1
vote
0 answers

How to use special charcters like (*) in dotenv file

I would like to use * in dotenv (.env) file as my host for an application is based on subdomains, like (*.lvh.me). I tried to use characters like URL=/*/.lvh.me in the file and use the environment but it is not working. TENENT_URL=*.lvh.me in…
Mansh05
  • 63
  • 2
  • 8
1
vote
1 answer

Stuck when creating credentials - Yargs through package.json is deprecated

I´m using Windows 10 and following the "Getting started" tutorial, but after creation of user I can´t create the credential for him. the command line: eg credentials create -c bob -t key-auth -q the result: Configuring yargs through package.json is…
graffitiMSX
  • 73
  • 1
  • 8
1
vote
0 answers

How to configurate interaction between my own authentication server and Express-Gateway?

I'm a new to microservice architecture. In general, we have an applictaion broken into microsrvices. I was advised to use API Gateway as a client request router. I chose the Express-Gateway. And that's what i want to do: I need that when…
Andrey F
  • 11
  • 4
1
vote
1 answer

How to manage the credentials of the consumers

I have a general question about the way for user authentication with many microservices and Express-Gateway. I have N microservices. One of those microservices (lets call it "User Profiles") will contain all of the user profile related data such as…
1
vote
1 answer

Express Gateway: Not getting response body

I am not being able to get the response body that I need to store in the logs along with the request body. The only time I'm able to get the response body is when the request fails. I've followed the blog post that solved my issue on getting the…
1
vote
2 answers

best way to access req.body in policy

I am currently working on a custom plugin realizing an oauth solution. I decided to implement a proper policy that forwards the incoming login post to an external service. Therefore I have to access the body of the request (property req.body), which…
1
vote
1 answer

express-gateway- is that possible to save response result to database?

i have a question about express-gateway i did routing in express gateway and when i hit use postman i got following response { "response": { "rescode": "0", "hp": "0822xxxx", "vtype": "ADB", "server_trxid": "8811", …
Ria Anggraini
  • 2,237
  • 2
  • 9
  • 26
1
vote
1 answer

express-gateway : Consolidate requests

Is there a way to chain / consolidate multiple REST calls? For example, expose an api that would accept all order details and then when that api is called, make multiple calls for different steps like add to cart, checkout etc and when it’s all…
1
vote
2 answers

Microservices with express gateway : routes return 404 error

My microservice is running in port 3000 and I am trying to proxy the request via express-js gateway But I got a problem with accessing routes in microservice MICRO SERVICE ROUTE app.use('/sample',(req,res)=>{ res.json({ message:'Run with…
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
1
vote
1 answer

Express gateway how to ignore path but use rest of the url

My configurations are as below apiEndpoints: api: host: '*' paths: '/ip' approval-engine: host: '*' paths: '/app/*' serviceEndpoints: httpbin: url: 'https://httpbin.org' approval-engine: url:…
rbuno
  • 13
  • 4
1
vote
1 answer

Express Gateway enabling logs

I have below issues with Express Gateway logs: I have enabled Express Gateway logs according to their documentation, but I couldn't find any log file created under my gateway root. When I start the gateway with below command it shows debug logs,…
Chandra615
  • 13
  • 5
1
vote
1 answer

User as a consumer in express-gateway

I am looking at express-gateway to be used in my app as API Gateway. Going through the documentation https://www.express-gateway.io/getting-started-with-oauth2/ I am a bit confused, as to, if user created here means a client or the end user. MY…
ro ko
  • 2,906
  • 3
  • 37
  • 58
1
vote
1 answer

express gateway jwt issuing not working

I'm kinda of new in EG. I have followed the documentation about issuing a jwt token instead of opaque but still receiving an opaque access token. Not sure what I'm missing to change. This is my system.config file db: redis: host: localhost …
Cesar Sosa
  • 13
  • 3
1
vote
2 answers

How to use express api gateway in a docker swarm mode?

I have a few simple REST api services implemented in Express.These services run in docker containers in a swarm mode.Also,I am trying to use express-api gateway with these services.The express api gateway also runs in a container as part of the…
user1261913
  • 325
  • 4
  • 18