You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2026/03/07 07:05:50 UTC
(syncope) 02/02: Upgrading CAS and pac4j
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 4_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
commit f3d96a19d2e568e403ea36f8803fb1733e6aa424
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Sat Mar 7 08:00:42 2026 +0100
Upgrading CAS and pac4j
---
.../java/org/apache/syncope/core/logic/oidc/OIDCClientCache.java | 6 +++---
.../main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java | 4 ++--
pom.xml | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ext/oidcc4ui/logic/src/main/java/org/apache/syncope/core/logic/oidc/OIDCClientCache.java b/ext/oidcc4ui/logic/src/main/java/org/apache/syncope/core/logic/oidc/OIDCClientCache.java
index f4d67344c6..df970fcbd2 100644
--- a/ext/oidcc4ui/logic/src/main/java/org/apache/syncope/core/logic/oidc/OIDCClientCache.java
+++ b/ext/oidcc4ui/logic/src/main/java/org/apache/syncope/core/logic/oidc/OIDCClientCache.java
@@ -132,10 +132,10 @@ public class OIDCClientCache {
@Override
public ClientAuthentication getClientAuthentication() {
- if (clientAuthentication == null) {
- clientAuthentication = computeClientAuthentication();
+ if (clientAuthenticationRef.get() == null) {
+ clientAuthenticationRef.set(computeClientAuthentication());
}
- return clientAuthentication;
+ return super.getClientAuthentication();
}
@Override
diff --git a/ext/saml2sp4ui/logic/src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java b/ext/saml2sp4ui/logic/src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java
index 458100b6d7..be22b71902 100644
--- a/ext/saml2sp4ui/logic/src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java
+++ b/ext/saml2sp4ui/logic/src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java
@@ -285,7 +285,7 @@ public class SAML2SP4UILogic extends AbstractSAML2SP4UILogic {
@Override
public Optional<RedirectionAction> getRedirectionAction(final CallContext ctx) {
- this.saml2ObjectBuilder = new SAML2AuthnRequestBuilder() {
+ saml2Client.getConfiguration().setSamlAuthnRequestBuilder(new SAML2AuthnRequestBuilder() {
@Override
public AuthnRequest build(final SAML2MessageContext context) {
@@ -295,7 +295,7 @@ public class SAML2SP4UILogic extends AbstractSAML2SP4UILogic {
ifPresent(provider -> authnRequest.setRequestedAuthnContext(provider.get()));
return authnRequest;
}
- };
+ });
return super.getRedirectionAction(ctx);
}
});
diff --git a/pom.xml b/pom.xml
index 1eea16ebce..5160de2a6f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -461,9 +461,9 @@ under the License.
<commons-jexl.version>3.6.2</commons-jexl.version>
<commons-text.version>1.15.0</commons-text.version>
- <pac4j.version>6.2.2</pac4j.version>
+ <pac4j.version>6.3.3</pac4j.version>
- <cas.version>7.3.4</cas.version>
+ <cas.version>7.3.5</cas.version>
<cas-client.version>4.0.4</cas-client.version>
<swagger-core.version>2.2.44</swagger-core.version>