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
2 answers

Express-Gateway response error after setting authorization

I'm getting an Error 404 when trying to set my authorization key (key-auth) in the request header. I'm sure that there isn't any problem with my key because if I don't set it a Forbidden status will return. before setting any credentials: $ curl…
Aref
  • 93
  • 3
  • 13
0
votes
0 answers

Express Gateway OAutn2 client_credentials flow sends incorrect value in expires_in

Express Gateway app created with no scopes Requested access token via api /oauth2/token Request as follows: curl --location 'http://localhost:9080/oauth2/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode…
user1306828
  • 715
  • 7
  • 14
0
votes
0 answers

Problem in integrating web socket microservice with api gateway using express-gateway

I am integrating a websocket microservice with api gateway using express-gateway package and I am facing issue in proxying request from client to server via express-gateway. All the microservices including api-gateway are running inside docker…
0
votes
0 answers

Divide the gateway configuration yaml file into multiple files - Express Gateway

The gateway configuration file (yaml) for my Express gateway has grown to be quite large and has become unmanageable. It has all my apiEndpoints, policies and pipelines. I am trying to find a way to divide the file for it to be more manageable.
ro ko
  • 2,906
  • 3
  • 37
  • 58
0
votes
0 answers

How to setup basic-auth in express-gateway?

I'm trying to setup express-gateway with basic-auth and I can't figure out how to use it. The docs state that In order to use the Basic Authorization policy, consumers must be created and basic-auth credentials created for them. To create consumers…
packenbush
  • 90
  • 1
  • 8
0
votes
1 answer

express gateway doesn't pass multipart/formdata

I'm using express gateway as my gateway to services. one of my services has to update an image. so when I'm using the service alone it accepts files and I use multer to parse them but when it's behind express gateway, the file will be lost and I…
mohammad
  • 505
  • 4
  • 17
0
votes
0 answers

access user.db from express-gateway-plugin

I am creating a new plugin for express gateway and need to access users to find consumerId from username. I am unable to figure out how to do it from plugin. Can anyone point me on how I can access user using userId or user email Thanks in advance
user1306828
  • 715
  • 7
  • 14
0
votes
0 answers

Can express gateway operates as a OAuth2 Client?

I'm trying to use node's Express Gateway as a OAuth2 Client, in order to works with a Auth0 as a Resource Server. I haven't found any documentation about it. Ever I found any reference about Express Gateway and OAuth is all about very similar with…
mgodoy-br
  • 21
  • 3
0
votes
0 answers

Express gateway return redirect 307 instead of forward requests

Scenario I have two services service1 and service2. First is written in net5 and second in net6. I also would like to have some gateway. I used express gateway. I hosted it as 3 containers with docker compose. There are 3 ports localhost:10443 for…
zolty13
  • 1,943
  • 3
  • 17
  • 34
0
votes
0 answers

Express Gateway detect authenticated user by cookie

I'm new to express gateway, I've created login in my user service and created oauth2 credentials in gateway, got the secret key and store it as httpOnly cookie on client. Now I have a protected route that I want authenticated users be able to work…
Alireza
  • 884
  • 9
  • 17
0
votes
1 answer

Express Gateway, Request transformer not adding parameters to body and header

I want to add parameters to my express gateway, I followed official documentation. So my pipeline like that: - name: shop apiEndpoints: - shop policies: - proxy: - action: serviceEndpoint: shopsrv …
akasaa
  • 1,282
  • 4
  • 13
  • 33
0
votes
1 answer

Express Gateway. Using multiple services with custom url path

I have 2 services and I want to create an API gateway for these services. Service 1 name : Leon host : api.leon.com endpoints: / /jungle Service 2 name : Tiger host : api.tiger.com endpoints: / /jungle Expected Behavior: API Gateway…
akasaa
  • 1,282
  • 4
  • 13
  • 33
0
votes
2 answers

Express gateway return Cannot GET

I want to create an api gateway with express-gateway (https://www.express-gateway.io/). I have a service as "datastore" and datastore host: mydatastore.us-west-2.compute.amazonaws.com I want to create a gateway for :…
akasaa
  • 1,282
  • 4
  • 13
  • 33
0
votes
1 answer

API gateway and app backend authentication

I have application with backend and frontend. We are using JWT token for the authentication and Authorization(A2). Now we are planning to use express-gateway as an API gateway (AG) so that backend can be unload from routing and other protection…
Vidalia
  • 36
  • 1
  • 5
0
votes
1 answer

express-gateway API key management

I have API backend and it will be consumed by different consumers like our own company website and even other website can use our API with certain quota/limitation and for this scope management we will be using express-gateway(eg), however this is…
Vidalia
  • 36
  • 1
  • 5