final Client client = new JerseyClientBuilder(environment).using(configuration.getJerseyClient()).build(getName());
final ClientSecretsConfiguration clientSecrets = configuration.getClientSecrets();
environment.jersey().register(new ClientResource());
environment.jersey().register(new UserResource(dao));
environment.jersey().register(new AuthResource(client, dao, clientSecrets));
environment.servlets().addFilter("AuthFilter", new AuthFilter())
.addMappingForUrlPatterns(null, true, "/api/me");
}