From de7d254562ee04401894b82e3ee18f46d79ea357 Mon Sep 17 00:00:00 2001 From: Matthias Piepkorn <mpiepk@gmail.com> Date: Tue, 14 Feb 2017 10:32:07 +0000 Subject: [PATCH] Do not fail on invalid Accept header --- src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java index 7db732f..bed2b3c 100644 --- a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java +++ b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java @@ -12,10 +12,7 @@ import org.keycloak.services.resources.RealmsResource; import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.core.UriInfo; +import javax.ws.rs.core.*; public class CASLoginProtocolService { private RealmModel realm; @@ -72,12 +69,13 @@ @Path("proxyValidate") public Object proxyValidate() { - return null; + //TODO implement + return serviceValidate(); } @Path("proxy") public Object proxy() { - return null; + return Response.serverError().entity("Not implemented").build(); } @Path("p3/serviceValidate") -- Gitblit v1.9.1