@Override
    protected PushUserAuth doAuth(FullHttpRequest req, ChannelHandlerContext ctx) {
        Cookies cookies = parseCookies(req);
        for (Cookie c : cookies.getAll()) {
            if (c.name().equals("userAuthCookie")) {
                String customerId = c.value();
                if (!Strings.isNullOrEmpty(customerId)) {
                    return new SamplePushUserAuth(customerId);
                }
            }
        }
        return new SamplePushUserAuth(HttpResponseStatus.UNAUTHORIZED.code());
    }
We support only cookie based auth in this sample
zuul-sample/src/main/java/com/netflix/zuul/sample/push/SamplePushAuthHandler.java