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

Skip requesting scopes in oauth flow in express-gateway UI

Try to use oAuth authorization flow. I get interface with requesting access to account in express gateway UI. Can I tune flow so that this interface is skipped and all requesting scopes was approved by default?
0
votes
1 answer

How to deploy Express Gateway to Azure

I am able to run an express gateway Docker container and a Redis Docker container locally and would like to deploy this to Azure. How do I go about it? This is my docker-compose.yml file: version: '2' services: eg_redis: image: redis …
0
votes
1 answer

Understanding user creation between Express Gateway & Microservices ( or Monolithic API )

I'm in the process of learning and experimenting with Express Gateway and some simple services ( or even just a small monolithic api that sits behind the gateway ) I have gone through Express Gateway 'Getting Started' examples and have read through…
ndyr
  • 503
  • 4
  • 20
0
votes
1 answer

Run custom functions in express-gateway

I have this configuration in the gateway.config.yml (Express-Gateway api): - bo policies: - jwt: - action: secretOrPublicKeyFile: './key.pem' checkCredentialExistence: false Everything works fine, but I…
Jose Raul Perera
  • 778
  • 1
  • 7
  • 35
0
votes
1 answer

Oauth2 Password Grant type in Express-Gateway

We are trying to implement the "Password" grant type through Express-Gateway in our Microservices. But we could not find any documentation on the Express-Gateway and the global endpoint "/oauth2/token" gives an "unauthorised" error when we try to…
0
votes
0 answers

how to use scopes in Oauth2.0 to authorize user using Express Gateway(Microservice API Gateway)?

I did scopes with key-auth mechanism is perfectly working, but when i use scopes with Oauth2.0 mechanism, i am getting unauthorized error. I did without scopes, the Oauth2.0 mechanism is working perfectly. Please suggest how to solve this…
Prathap Badavath
  • 1,621
  • 2
  • 20
  • 24
0
votes
1 answer

Express Gateway CORS + apiKey authorization 401 Unauthorized

Intention The CORS configuration seems to be valid and works, in a React-App I can easily access the gateway. Access via Postman is also possible, so the apiKey can't cause the problem. But if I add authentication with apiKey, I get error messages…
stoniemahonie
  • 321
  • 1
  • 5
  • 13
0
votes
1 answer

Express Gateway policy

I am testing out EG policies for my microservices app. One requirement is that whenever express gateway receives a request, I want to invoke a particular service, parse its result, and based on the result decide to proceed for downstream calls or…
Haider
  • 461
  • 4
  • 20
0
votes
1 answer

How to serve admin API over express gateways HTTPS?

I try to set up my express gateway so that the admin API is served over express gateways own HTTPS as an apiEndpoint / serviceEndpoint. Below is my gateway-config.yml I followed the instructions as mentioned in the documentation as good as I…
stoniemahonie
  • 321
  • 1
  • 5
  • 13
0
votes
1 answer

Express gateway liveness or readyness

I am setting the cloud environment for my application. We are using express gateway as entry point. How to check liveness or readiness of the express gateway on linux environment? Please let me know is there any configuration or url to check the…
0
votes
1 answer

Is it possible to rerun a pipeline when a specific error is returned from a proxied request?

I'm using express-gateway in order to authenticate and proxy request to third party service. I want to restart the pipeline if i'm getting specific error for the proxied request. I is possible?
Shiran Amiel
  • 21
  • 1
  • 3
0
votes
1 answer

Can not find module users.json error in express-gateway

After installing express-gateway, when I create API gateway using following command, eg gateway create I am getting following error. [EG:config] error: Cannot find module 'C:\My Content\Microservice Projects\FIFA Team…
0
votes
1 answer

How can I set proxyTimeout in express-gateway?

Where exactly do I put proxyTimeout in gateway.config.yml?
sjahongir
  • 23
  • 7
0
votes
1 answer

Fallback to another service endpoint if the first is busy according to status code

How is possibile to fallback to another API service if the first try fails with status code of 429 or 500? Consider this situation: The gateway should first try a microservice host, but if it timeouts or answer a non 2xx status code it should try a…
Fabiosoft
  • 1,141
  • 14
  • 32
0
votes
1 answer

How can i access the jwt token payload

I have various microservices, and i am usign jwt policy to authenticate the user in express gateway, but i need to access the token payload, and proxy the payload to my microservice. I have tried to acces the payload in req.user, but is nothing…
camilo posada
  • 331
  • 3
  • 8