spring-cloud-netflix icon indicating copy to clipboard operation
spring-cloud-netflix copied to clipboard

custom route property

Open hodeh opened this issue 9 years ago • 3 comments

Is there a way to have custom property in a Route definition at configuration and then I can use it later in a filter. ----Config File-----

    route-x:
      path: /v1.0/route/x/**
      service-id: route-x
      strip-prefix: false
      custom-property-x: value-x

hodeh avatar Apr 12 '17 12:04 hodeh

I dont believe so

ryanjbaxter avatar Apr 12 '17 13:04 ryanjbaxter

No, what is the property for and how is it to be used?

spencergibb avatar Apr 12 '17 16:04 spencergibb

@spencergibb the property name will be authenticationRequired (true/false). Custom Authentication filter will read that value and it will authenticate the request if that route has this custom value. if the value is false then filter knows that this is a public resource and there shouldnt be any authentication

hodeh avatar Apr 13 '17 06:04 hodeh