You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/07/18 05:44:55 UTC
[GitHub] [servicecomb-java-chassis] shri-arunraj opened a new issue, #3201: CommonHttpDispatcher does not invoke handler chain and Configured Auth handler is not triggered
shri-arunraj opened a new issue, #3201:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3201
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 service `mfa-login-service` . At run time after `CommonHttpDispatcher` picks the path for routing, the request is forwarded to the `mfa-login-service` . But none of the handlers are triggered before invocation.
```
servicecomb-config-order: 100
servicecomb:
service:
application: m1-services
name: gateway
properties:
allowCrossApp: true #whether to allow calls across applications
version: 0.0.4
registry:
# Default using local service center
address: http://localhost:30100
instance:
watch: false
edge:
filter:
addHeader:
enabled: true
allowedHeaders: xxx
handler:
chain:
Consumer:
default: loadbalance,tracing-consumer
service:
mfa-login-service: authClientGrant,loadbalance,tracing-consumer
Provider:
default: bizkeeper-provider,tracing-provider
rest:
address: 0.0.0.0:9091?sslEnabled=false
tracing:
enabled: true
http:
dispatcher:
edge:
http:
enabled: true
order: 1
mappings:
oauthAdmin:
path: "/admin/oauth/.*"
microserviceName: oauth-service
prefixSegmentCount: 1
versionRule: 0.0.0+
mfaServices:
path: "/a/mfa/login/.*"
microserviceName: mfa-login-service
prefixSegmentCount: 1
versionRule: 0.0.0+
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3201: CommonHttpDispatcher does not invoke handler chain and Configured Auth handler is not triggered
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3201:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3201#issuecomment-1196339240
You can look at `EdgeAddHeaderClientFilter` for reference
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3201: CommonHttpDispatcher does not invoke handler chain and Configured Auth handler is not triggered
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3201:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3201#issuecomment-1189934517
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)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] shri-arunraj commented on issue #3201: CommonHttpDispatcher does not invoke handler chain and Configured Auth handler is not triggered
Posted by GitBox <gi...@apache.org>.
shri-arunraj commented on issue #3201:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3201#issuecomment-1190047993
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?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] shri-arunraj commented on issue #3201: CommonHttpDispatcher does not invoke handler chain and Configured Auth handler is not triggered
Posted by GitBox <gi...@apache.org>.
shri-arunraj commented on issue #3201:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3201#issuecomment-1196301508
@liubao68 Please help answer! We are exploring this to use servicecomb for our migration to microservices infrastructure. Appreciate quick response on this thanks :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org