From c38abb2cfe2f47a8dfb9390c2558c10f4b64f379 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Mon, 18 Aug 2014 18:52:51 -0400 Subject: [PATCH] ? --- .../services/resources/admin/UserFederationResource.java | 2 +- .../main/java/org/keycloak/services/util/CookieHelper.java | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/services/src/main/java/org/keycloak/services/resources/admin/UserFederationResource.java b/services/src/main/java/org/keycloak/services/resources/admin/UserFederationResource.java index 554ed7d6f0..f03d4102ec 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/UserFederationResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/UserFederationResource.java @@ -156,7 +156,7 @@ public class UserFederationResource { @GET @NoCache @Path("instances/{id}") - @Consumes("application/json") + @Produces("application/json") public UserFederationProviderRepresentation getProviderInstance(@PathParam("id") String id) { logger.info("getProvider"); auth.requireView(); diff --git a/services/src/main/java/org/keycloak/services/util/CookieHelper.java b/services/src/main/java/org/keycloak/services/util/CookieHelper.java index 04413cea75..3b30b237ab 100755 --- a/services/src/main/java/org/keycloak/services/util/CookieHelper.java +++ b/services/src/main/java/org/keycloak/services/util/CookieHelper.java @@ -3,13 +3,7 @@ package org.keycloak.services.util; import org.jboss.resteasy.spi.HttpResponse; import org.jboss.resteasy.spi.ResteasyProviderFactory; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServletResponse; import javax.ws.rs.core.HttpHeaders; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Locale; /** * @author Bill Burke