[java-identity-provider] branch main updated: New storage config with additional parent beans.

Codeberg noreply at shibboleth.net
Tue Nov 17 18:15:34 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
https://codeberg.org/Shibboleth/java-identity-provider/commit/80ce5d9ea6367eda85aa15eef9522a06464c293b

The following commit(s) were added to refs/heads/main by this push:
     new 80ce5d9ea New storage config with additional parent beans.
80ce5d9ea is described below

commit 80ce5d9ea6367eda85aa15eef9522a06464c293b
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Nov 17 13:15:11 2026 -0500

    New storage config with additional parent beans.
---
 .../net/shibboleth/idp/conf/global-system.xml      | 50 +------------
 .../resources/net/shibboleth/idp/conf/storage.xml  | 84 ++++++++++++++++++++++
 2 files changed, 85 insertions(+), 49 deletions(-)

diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/global-system.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/global-system.xml
index 77e0d0508..4c5ac1f60 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/global-system.xml
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/global-system.xml
@@ -176,6 +176,7 @@
     <import resource="soap-client.xml" />
     <import resource="saml-utilities.xml" />
     <import resource="sealer.xml" />
+    <import resource="storage.xml" />
     <import resource="filters.xml" />
 
     <bean id="systemPrereqs" class="org.springframework.beans.factory.config.MethodInvokingBean"
@@ -467,55 +468,6 @@
         p:cookieManager-ref="shibboleth.PersistentCookieManager"
         p:cookieName="%{idp.authn.usernameCookieName:}" />
         
-
-    <bean id="shibboleth.StorageService" lazy-init="true"
-        class="%{idp.storage.StorageService:org.opensaml.storage.impl.MemoryStorageService}"
-        p:cleanupInterval="%{idp.storage.cleanupInterval:PT10M}" />
-
-    <bean id="shibboleth.ClientSessionStorageService" lazy-init="true"
-        class="org.opensaml.storage.impl.client.ClientStorageService"
-        p:httpServletRequestSupplier-ref="shibboleth.HttpServletRequestSupplier"
-        p:cookieManager-ref="shibboleth.CookieManager"
-        p:storageName="%{idp.storage.clientSessionStorageName:shib_idp_session_ss}"
-        p:dataSealer-ref="shibboleth.DataSealer" />
-
-    <bean id="shibboleth.ClientPersistentStorageService" lazy-init="true"
-        class="org.opensaml.storage.impl.client.ClientStorageService"
-        p:httpServletRequestSupplier-ref="shibboleth.HttpServletRequestSupplier"
-        p:cookieManager-ref="shibboleth.PersistentCookieManager"
-        p:storageName="%{idp.storage.clientPersistentStorageName:shib_idp_persistent_ss}"
-        p:dataSealer-ref="shibboleth.DataSealer"
-        p:keyStrategy-ref="#{ '%{idp.sealer.keyStrategy:shibboleth.DataSealerKeyStrategy}'.trim() }" />
-
-    <!--
-    Default list of ClientStorageService plugins needed for injection into storage read/write flows.
-    -->
-    <bean id="shibboleth.DefaultClientStorageServices" lazy-init="true"
-            class="org.springframework.beans.factory.config.ListFactoryBean">
-        <property name="sourceList">
-            <list>
-                <ref bean="shibboleth.ClientSessionStorageService" />
-                <ref bean="shibboleth.ClientPersistentStorageService" />
-            </list>
-        </property>
-    </bean>
-
-    <bean id="shibboleth.ReplayCache" class="org.opensaml.storage.impl.StorageServiceReplayCache"
-        p:storage-ref="#{'%{idp.replayCache.StorageService:shibboleth.StorageService}'.trim()}"
-        p:strict="%{idp.replayCache.strict:true}" />
-
-    <bean id="shibboleth.SAMLArtifactMap" depends-on="shibboleth.StorageService"
-        class="org.opensaml.saml.common.binding.artifact.impl.StorageServiceSAMLArtifactMap"
-        p:storageService-ref="#{'%{idp.artifact.StorageService:shibboleth.StorageService}'.trim()}" />
-
-    <bean id="shibboleth.StorageBackedAccountLockoutManager" abstract="true"
-            class="net.shibboleth.idp.authn.impl.StorageBackedAccountLockoutManager"
-            p:storageService-ref="shibboleth.StorageService">
-        <property name="lockoutKeyStrategy">
-            <bean class="net.shibboleth.idp.authn.impl.StorageBackedAccountLockoutManager.UsernameIPLockoutKeyStrategy"
-                p:httpServletRequestSupplier-ref="shibboleth.HttpServletRequestSupplier" />
-        </property>
-    </bean>
     
     <bean class="net.shibboleth.shared.spring.config.DeprecatedBeanDetector" c:_1="global.xml">
         <constructor-arg index="0">
diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/storage.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/storage.xml
new file mode 100644
index 000000000..5fe351a88
--- /dev/null
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/storage.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:context="http://www.springframework.org/schema/context"
+       xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:p="http://www.springframework.org/schema/p"
+       xmlns:c="http://www.springframework.org/schema/c"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+                           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+                           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
+
+       default-init-method="initialize">
+
+    <!-- StorageService beans -->
+
+    <bean id="shibboleth.StorageService" lazy-init="true"
+        class="%{idp.storage.StorageService:org.opensaml.storage.impl.MemoryStorageService}"
+        p:cleanupInterval="%{idp.storage.cleanupInterval:PT10M}" />
+
+    <bean id="shibboleth.ClientSessionStorageService" lazy-init="true"
+        class="org.opensaml.storage.impl.client.ClientStorageService"
+        p:httpServletRequestSupplier-ref="shibboleth.HttpServletRequestSupplier"
+        p:cookieManager-ref="shibboleth.CookieManager"
+        p:storageName="%{idp.storage.clientSessionStorageName:shib_idp_session_ss}"
+        p:dataSealer-ref="shibboleth.DataSealer" />
+
+    <bean id="shibboleth.ClientPersistentStorageService" lazy-init="true"
+        class="org.opensaml.storage.impl.client.ClientStorageService"
+        p:httpServletRequestSupplier-ref="shibboleth.HttpServletRequestSupplier"
+        p:cookieManager-ref="shibboleth.PersistentCookieManager"
+        p:storageName="%{idp.storage.clientPersistentStorageName:shib_idp_persistent_ss}"
+        p:dataSealer-ref="shibboleth.DataSealer"
+        p:keyStrategy-ref="#{ '%{idp.sealer.keyStrategy:shibboleth.DataSealerKeyStrategy}'.trim() }" />
+
+    <!--
+    Default list of ClientStorageService plugins needed for injection into storage read/write flows.
+    -->
+    <bean id="shibboleth.DefaultClientStorageServices" lazy-init="true"
+            class="org.springframework.beans.factory.config.ListFactoryBean">
+        <property name="sourceList">
+            <list>
+                <ref bean="shibboleth.ClientSessionStorageService" />
+                <ref bean="shibboleth.ClientPersistentStorageService" />
+            </list>
+        </property>
+    </bean>
+
+    <!-- Parent beans for eventual use. -->
+    
+    <bean id="shibboleth.FilesystemStorageService.ReadOnly"
+        class="org.opensaml.storage.impl.FilesystemStorageService" abstract="true" />
+    <bean id="shibboleth.FilesystemStorageService.ReadWrite"
+        class="org.opensaml.storage.impl.FilesystemStorageService" abstract="true"
+        p:readOnly="false" />
+    <bean id="shibboleth.FilesystemStorageService.ReadOnly.Binary"
+        class="org.opensaml.storage.impl.FilesystemStorageService" abstract="true"
+        p:encodeData="true" />
+    <bean id="shibboleth.FilesystemStorageService.ReadWrite.Binary"
+        class="org.opensaml.storage.impl.FilesystemStorageService" abstract="true"
+        p:readOnly="false"
+        p:encodeData="true" />
+    <bean id="shibboleth.ResourceBackedStorageService"
+        class="org.opensaml.storage.impl.ResourceBackedMemoryStorageService" abstract="true" />
+
+    <!-- Persistence-related. -->
+
+    <bean id="shibboleth.ReplayCache" class="org.opensaml.storage.impl.StorageServiceReplayCache"
+        p:storage-ref="#{'%{idp.replayCache.StorageService:shibboleth.StorageService}'.trim()}"
+        p:strict="%{idp.replayCache.strict:true}" />
+
+    <bean id="shibboleth.SAMLArtifactMap" depends-on="shibboleth.StorageService"
+        class="org.opensaml.saml.common.binding.artifact.impl.StorageServiceSAMLArtifactMap"
+        p:storageService-ref="#{'%{idp.artifact.StorageService:shibboleth.StorageService}'.trim()}" />
+
+    <bean id="shibboleth.StorageBackedAccountLockoutManager" abstract="true"
+            class="net.shibboleth.idp.authn.impl.StorageBackedAccountLockoutManager"
+            p:storageService-ref="shibboleth.StorageService">
+        <property name="lockoutKeyStrategy">
+            <bean class="net.shibboleth.idp.authn.impl.StorageBackedAccountLockoutManager.UsernameIPLockoutKeyStrategy"
+                p:httpServletRequestSupplier-ref="shibboleth.HttpServletRequestSupplier" />
+        </property>
+    </bean>
+
+</beans>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list