Add support for OAuth relay in zuul proxy
This commit is contained in:
@@ -68,7 +68,7 @@ public class EurekaServerAutoConfiguration implements ServletContextAware,
|
||||
|
||||
private boolean running;
|
||||
|
||||
private int order = 0;
|
||||
private int order = 1;
|
||||
|
||||
@Override
|
||||
public void setServletContext(ServletContext servletContext) {
|
||||
|
||||
@@ -3,10 +3,12 @@ package org.springframework.platform.netflix.zuul;
|
||||
import java.lang.annotation.*;
|
||||
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.platform.netflix.eureka.EnableEurekaClient;
|
||||
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@EnableEurekaClient
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
|
||||
@@ -26,7 +26,7 @@ public class Routes {
|
||||
private String keyPrefix;
|
||||
|
||||
public Routes() {
|
||||
keyPrefix = "zuul.route.";
|
||||
keyPrefix = "zuul.proxy.route.";
|
||||
initField();
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public class ZuulProxyConfiguration {
|
||||
|
||||
@Bean
|
||||
Routes routes() {
|
||||
return new Routes("zuul.proxy.route.");
|
||||
return new Routes();
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user