diff --git a/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java b/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java index dc060e0..3833611 100644 --- a/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java +++ b/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java @@ -1,6 +1,5 @@ package io.github.johnjcool.keycloak.broker.cas; -import static io.github.johnjcool.keycloak.broker.cas.util.UrlHelper.PROVIDER_PARAMETER_STATE; import static io.github.johnjcool.keycloak.broker.cas.util.UrlHelper.PROVIDER_PARAMETER_TICKET; import static io.github.johnjcool.keycloak.broker.cas.util.UrlHelper.createAuthenticationUrl; import static io.github.johnjcool.keycloak.broker.cas.util.UrlHelper.createLogoutUrl; @@ -8,21 +7,16 @@ import io.github.johnjcool.keycloak.broker.cas.model.ServiceResponse; import io.github.johnjcool.keycloak.broker.cas.model.Success; +import jakarta.ws.rs.CookieParam; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.Context; -import jakarta.ws.rs.core.HttpHeaders; -import jakarta.ws.rs.core.MediaType; -import jakarta.ws.rs.core.Response; -import jakarta.ws.rs.core.Response.Status; -import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.core.*; import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.Unmarshaller; import java.io.IOException; import java.io.StringReader; -import java.net.URI; import org.jboss.logging.Logger; import org.keycloak.broker.provider.AbstractIdentityProvider; import org.keycloak.broker.provider.AuthenticationRequest; @@ -48,6 +42,8 @@ public class CasIdentityProvider extends AbstractIdentityProvider