Commit b0a44dba by Dave Syer

Add support for OAuth relay in zuul proxy

parent 78a428ec
...@@ -68,7 +68,7 @@ public class EurekaServerAutoConfiguration implements ServletContextAware, ...@@ -68,7 +68,7 @@ public class EurekaServerAutoConfiguration implements ServletContextAware,
private boolean running; private boolean running;
private int order = 0; private int order = 1;
@Override @Override
public void setServletContext(ServletContext servletContext) { public void setServletContext(ServletContext servletContext) {
......
...@@ -3,10 +3,12 @@ package org.springframework.platform.netflix.zuul; ...@@ -3,10 +3,12 @@ package org.springframework.platform.netflix.zuul;
import java.lang.annotation.*; import java.lang.annotation.*;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;
import org.springframework.platform.netflix.eureka.EnableEurekaClient;
/** /**
* @author Spencer Gibb * @author Spencer Gibb
*/ */
@EnableEurekaClient
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Documented @Documented
......
...@@ -26,7 +26,7 @@ public class Routes { ...@@ -26,7 +26,7 @@ public class Routes {
private String keyPrefix; private String keyPrefix;
public Routes() { public Routes() {
keyPrefix = "zuul.route."; keyPrefix = "zuul.proxy.route.";
initField(); initField();
} }
......
...@@ -53,7 +53,7 @@ public class ZuulProxyConfiguration { ...@@ -53,7 +53,7 @@ public class ZuulProxyConfiguration {
@Bean @Bean
Routes routes() { Routes routes() {
return new Routes("zuul.proxy.route."); return new Routes();
} }
@Bean @Bean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment