diff --git a/gateway-ha/src/main/java/com/lyft/data/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/com/lyft/data/gateway/ha/handler/QueryIdCachingProxyHandler.java index 9ce04f72..c16dabd0 100644 --- a/gateway-ha/src/main/java/com/lyft/data/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/com/lyft/data/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -37,6 +37,7 @@ public class QueryIdCachingProxyHandler extends ProxyHandler { public static final String UI_API_STATS_PATH = "/ui/api/stats"; public static final String UI_API_QUEUED_LIST_PATH = "/ui/api/query?state=QUEUED"; public static final String PRESTO_UI_PATH = "/ui"; + public static final String OAUTH2_PATH = "/oauth2"; public static final String USER_HEADER = "X-Trino-User"; public static final String ALTERNATE_USER_HEADER = "X-Presto-User"; public static final String SOURCE_HEADER = "X-Trino-Source"; @@ -96,6 +97,7 @@ private boolean isPathWhiteListed(String path) { return path.startsWith(V1_STATEMENT_PATH) || path.startsWith(V1_QUERY_PATH) || path.startsWith(PRESTO_UI_PATH) + || path.startsWith(OAUTH2_PATH) || path.startsWith(V1_INFO_PATH) || path.startsWith(UI_API_STATS_PATH); }