From b88dc318a53c0d36b2738decd689033dac7a215e Mon Sep 17 00:00:00 2001 From: Andre Piantino <andre.piantino@tjsc.jus.br> Date: Tue, 21 Feb 2023 09:12:13 +0000 Subject: [PATCH] Improved event log --- src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java index bed2b3c..2448808 100644 --- a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java +++ b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocolService.java @@ -5,10 +5,7 @@ import org.keycloak.events.EventBuilder; import org.keycloak.models.KeycloakSession; import org.keycloak.models.RealmModel; -import org.keycloak.protocol.cas.endpoints.AuthorizationEndpoint; -import org.keycloak.protocol.cas.endpoints.LogoutEndpoint; -import org.keycloak.protocol.cas.endpoints.ServiceValidateEndpoint; -import org.keycloak.protocol.cas.endpoints.ValidateEndpoint; +import org.keycloak.protocol.cas.endpoints.*; import org.keycloak.services.resources.RealmsResource; import javax.ws.rs.Path; @@ -17,9 +14,6 @@ public class CASLoginProtocolService { private RealmModel realm; private EventBuilder event; - - @Context - private UriInfo uriInfo; @Context private KeycloakSession session; @@ -48,7 +42,7 @@ @Path("logout") public Object logout() { - LogoutEndpoint endpoint = new LogoutEndpoint(realm, event); + LogoutEndpoint endpoint = new LogoutEndpoint(realm); ResteasyProviderFactory.getInstance().injectProperties(endpoint); return endpoint; } @@ -60,6 +54,13 @@ return endpoint; } + @Path("samlValidate") + public Object validateSaml11() { + SamlValidateEndpoint endpoint = new SamlValidateEndpoint(realm, event); + ResteasyProviderFactory.getInstance().injectProperties(endpoint); + return endpoint; + } + @Path("serviceValidate") public Object serviceValidate() { ServiceValidateEndpoint endpoint = new ServiceValidateEndpoint(realm, event); -- Gitblit v1.9.1