You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to catch '401' Un-Authorized status code of the zuul requests and retry using a new Access token
I am using spring-cloud-starter-zuul for routing the requests, I am adding the Access token in PreRequestFilter from Spring Session.. I need to catch the '401' Un-Authorized status code for the expired tokens and retry the same request using a new access token created using the existing token..
Here is my zuul configuration zuul.routes.service1-api.url=http://service1:8080/api/v1/ zuul.routes.service2-api.url=http://service2:8080/api/v1/ zuul.routes.service3-api.url=http://service3:8080/api/v1/ zuul.host.connect-timeout-millis=60000 zuul.host.socket-timeout-millis=60000 zuul.add-proxy-headers=false ribbon.eureka.enabled=false
In my PreRequestFilter
@Override public Object run() { this.setHeadersToContext(ctx); return null; }
The text was updated successfully, but these errors were encountered:
I need to catch '401' Un-Authorized status code of the zuul requests and retry using a new Access token
I am using spring-cloud-starter-zuul for routing the requests, I am adding the Access token in PreRequestFilter from Spring Session.. I need to catch the '401' Un-Authorized status code for the expired tokens and retry the same request using a new access token created using the existing token..
Here is my zuul configuration
zuul.routes.service1-api.url=http://service1:8080/api/v1/ zuul.routes.service2-api.url=http://service2:8080/api/v1/ zuul.routes.service3-api.url=http://service3:8080/api/v1/ zuul.host.connect-timeout-millis=60000 zuul.host.socket-timeout-millis=60000 zuul.add-proxy-headers=false ribbon.eureka.enabled=false
In my PreRequestFilter
@Override public Object run() { this.setHeadersToContext(ctx); return null; }
The text was updated successfully, but these errors were encountered: