From a95bd992ee3849df9b89650c823afff96e49efb3 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 09:00:00 +0000 Subject: [PATCH] Update to Keycloak 23.0.2 --- src/main/java/org/keycloak/protocol/cas/representations/SamlResponseHelper.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/keycloak/protocol/cas/representations/SamlResponseHelper.java b/src/main/java/org/keycloak/protocol/cas/representations/SamlResponseHelper.java index f5db51c..d608cb7 100644 --- a/src/main/java/org/keycloak/protocol/cas/representations/SamlResponseHelper.java +++ b/src/main/java/org/keycloak/protocol/cas/representations/SamlResponseHelper.java @@ -6,7 +6,6 @@ import org.keycloak.dom.saml.v1.protocol.SAML11StatusType; import org.keycloak.protocol.cas.utils.CASValidationException; import org.keycloak.saml.common.exceptions.ProcessingException; -import org.keycloak.saml.processing.core.saml.v1.SAML11Constants; import org.keycloak.saml.processing.core.saml.v1.writers.SAML11ResponseWriter; import org.keycloak.services.validation.Validation; import org.w3c.dom.Document; @@ -74,7 +73,7 @@ conditions.setNotOnOrAfter(factory.newXMLGregorianCalendar(GregorianCalendar.from(nowZoned.plusMinutes(5)))); })); assertion.add(applyTo(new SAML11AuthenticationStatementType( - URI.create(SAML11Constants.AUTH_METHOD_PASSWORD), + URI.create(SAMLCASConstants.AUTH_METHOD_PASSWORD), now ), stmt -> stmt.setSubject(toSubject(username)))); assertion.addAllStatements(toAttributes(username, attributes)); @@ -141,8 +140,8 @@ private static URI nameIdFormat(String username) { return URI.create(Validation.isEmailValid(username) ? - SAML11Constants.FORMAT_EMAIL_ADDRESS : - SAML11Constants.FORMAT_UNSPECIFIED + SAMLCASConstants.FORMAT_EMAIL_ADDRESS : + SAMLCASConstants.FORMAT_UNSPECIFIED ); } -- Gitblit v1.9.1