These are chat archives for spring-cloud/spring-cloud

20th
Mar 2019
Frank Kootte
@frko
Mar 20 15:41

Hi there!

I am wondering if setting the spring.cloud.gateway.httpclient.responseTimeout configuration property causes the underling connection to be closed?

When the timeout has passed I mean, obviously.
Chris Overgaauw
@chrisovergaauw
Mar 20 19:30
Can someone tell me how to retain the default predicate path and rewrite when using fluent java routes?
Ryan Baxter
@ryanjbaxter
Mar 20 19:31
They should be retained in addition to using the java api
Spencer Gibb
@spencergibb
Mar 20 19:31
though they don't apply to routes created using the java dsl
Chris Overgaauw
@chrisovergaauw
Mar 20 19:33
Thank you both. That was quick :-)
Chris Overgaauw
@chrisovergaauw
Mar 20 19:48
I'm looking at the sample-gateway-oauth2login
and it uses a hardcoded URI. I would like to apply this filter without specifying a specific route (or uri more specifically) because otherwise I lose the convenience of not having to register every new API in the gateway.
Oh sorry, so the question is: How Can I apply the relay effect from the TokenRelayGatewayFilterFactory on the dynamically mapped routes?
Ryan Baxter
@ryanjbaxter
Mar 20 19:59
You would need to do something similar to what is defined here
but you will need to do something with the filter so it knows the name
and at the moment i cant find that code, maybe @spencergibb might know off hand, I need to sign off for a bit