Skip to main content

All Questions

-1 votes
0 answers
21 views

Spring Cloud Gateway with Kubernetes discovery client for http and grpc requests

I'm trying to implement gateway service using Spring Cloud Gateway with k8s client dicovery that will redirect both http/1.1 and http/2(GRPC) requests I set the following configurations: server: ...
Lior Derei's user avatar
0 votes
0 answers
35 views

Connection refused to keycloak's configuration uri from my gateway spring boot service (both running on docker)

It seems my gateway service is failing to resolve the host of my keycloak realm configuration uri (both are running locally on docker) I am able to see the page via browser on "http://localhost:...
markoss's user avatar
-1 votes
1 answer
59 views

Session management in a spring-oauth2-client that works as a gateway

I am implementing a microservices application and for the authentication issue I have used something similar to what @ch4mp proposed in his https://www.baeldung.com/spring-cloud-gateway-bff-oauth2 ...
Andre Gallegos's user avatar
-1 votes
0 answers
42 views

CORS with spring cloud gateway MVC is not working

I have a simple spring-cloud-gateway-mvc gateway where I have configured the cors through configuration which does not work. spring: cloud: gateway: mvc: routes: - id: ...
pmverma's user avatar
  • 1,661
0 votes
0 answers
38 views

Spring cloud gateway : Returns 200 to an api call but no response in body

When I hit URL through postman, [localhost:8090/api/v1] I get 200 but no response in body and when I check the logs of the service which was hit through gateway it shows nothing, which means it didn't ...
Aditya Priyam iGTB's user avatar
0 votes
0 answers
32 views

Problems with the authentication route using spring cloud gateway with oauth

I'm having problems with the authentication route using spring cloud gateway with oauth.I have 3 simple authentication services, which have a gateway, an oauth configuration service and the user. When ...
Jean Fernandine's user avatar
1 vote
1 answer
56 views

Getting IllegalStateException and ClassNotFoundException: jakarta.servlet.Filter While Using Keycloak Service with Spring Cloud Gateway

I am currently working on routing api which uses Spring Cloud Gateway library. I also want to use Keycloak for authentication purposes, but I failed to implement a proper Keycloak configuration for my ...
KaraKaplan's user avatar
-1 votes
1 answer
57 views

How to get inputStream as return value from ServerHttpRequest in spring reactive?

I am writing a Spring Reactive implementation for a third-party SPI which is based on a traditional servlet. One method requires InputStream from request as return value: /** * Returns the request ...
Michael's user avatar
  • 410
0 votes
1 answer
133 views

React Native OAuth2 Backend for Frontend With Spring Cloud Gateway BFF

Hello I am using learning about OAuth. I have a react native app, and I want to connect it to my Java Spring backend, with OAuth. I used this tutorial to add OAuth to my Java backend: https://www....
Kado's user avatar
  • 13
1 vote
1 answer
134 views

Converting ServerHttpRequest to HttpServletRequest

I'm migrating an application from Netflix/Zuul to Spring Cloud Gateway: public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { ServletServerHttpRequest ...
cybertextron's user avatar
  • 10.9k
1 vote
0 answers
93 views

ClosedChannelException when forwarding request with Gateway MVC

I want to: Send a POST request to a Gateway MVC server Make the gateway forward the request to a mocked endpoint (everything is happening on the same host) However, I get a ClosedChannelException ...
Powet's user avatar
  • 157
0 votes
0 answers
57 views

How to Load Balancing External API Calls in spring gateway

Is it possible to distribute the load of external API calls in spring gateway? I have third-party APIs located in different regions. My goal is to evenly distribute calls to these APIs across regions ...
user24162178's user avatar
1 vote
0 answers
227 views

Filters for all routes in Spring Cloud Gateway MVC

I'm using Spring Cloud Gateway MVC and need to know how to apply a filter to all routes. I've tried configuring spring.cloud.gateway.default-filters in application.yml, however, this configuration is ...
Jean Gonçalves's user avatar
0 votes
0 answers
292 views

Error Handling in Spring Cloud Gateway Filter Factory

I have a spring cloud gateway which has 2-3 filter factories which essentially mutates incoming requests to json. So when one of the backend microservices respond with a HTTP-400 or 404 the postman ...
hk18's user avatar
  • 1
0 votes
1 answer
345 views

How do you test Spring Cloud Gateway's RouteLocator?

I want to test my RouteLocator. I tried to do it in a manner similar to how we test endpoints in a WebFluxTest. Here are my Attempts Attempt #1 package com.example.gatewaydemo.filter; import org....
Powet's user avatar
  • 157

15 30 50 per page
1
2 3 4 5
23