Open shri-arunraj opened 2 years ago
CommonHttpDispatcher is designed for common http request forwarding. e.g. Do not depend swagger, and can forward requests to non java chassis services. It does not execute handler( no Invocation)
Alternatively if I forward using URLMappedEdgeDispatcher
to non java chassis service, the request headers in the original request are not getting received in the non java chassis service. Is there a way to configure URLMappedEdgeDispatcher
to pass along http headers to the target recipient?
@liubao68 Please help answer! We are exploring this to use servicecomb for our migration to microservices infrastructure. Appreciate quick response on this thanks :)
You can look at EdgeAddHeaderClientFilter
for reference. URLMappedEdgeDispatcher
is designed for java chassis services and it follows Open API not HTTP proxy. So only headers defined in REST api are passed to backend services. You can add headers needed in invocation context.
I have an issue in
CommonHttpDispatcher
in that the consumer auth handlers configured for the registered third party microservice are not triggered. Can you help here? Why handlers are not triggered on using this dispatcher?This is my configuration. Here
authClientGrant
is a consumer auth handler configured for the registered third party servicemfa-login-service
. At run time afterCommonHttpDispatcher
picks the path for routing, the request is forwarded to themfa-login-service
. But none of the handlers are triggered before invocation.