[java-plugin-shibd] branch main updated: Adjust name of AgentResolver service bean to match IdP conventions.

Codeberg noreply at shibboleth.net
Wed Jun 3 13:37:33 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-plugin-shibd.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd/commit/78664ef5117ecab05129d253d91f783704fbb111

The following commit(s) were added to refs/heads/main by this push:
     new 78664ef  Adjust name of AgentResolver service bean to match IdP conventions.
78664ef is described below

commit 78664ef5117ecab05129d253d91f783704fbb111
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed Jun 3 09:37:16 2026 -0400

    Adjust name of AgentResolver service bean to match IdP conventions.
---
 .../src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml  | 7 ++++++-
 .../net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml     | 2 +-
 .../src/main/resources/net/shibboleth/sp/conf/agents-system.xml    | 4 ++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/sp-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml b/sp-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
index 061a026..efe6042 100644
--- a/sp-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
+++ b/sp-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
@@ -15,7 +15,7 @@
     
     <!-- Agent reseolver service. -->
 
-    <bean id="shibboleth.sp.AgentResolver" parent="shibboleth.ReloadableService" 
+    <bean id="shibboleth.sp.AgentResolverService" parent="shibboleth.ReloadableService" 
         c:claz="net.shibboleth.sp.impl.DefaultAgentResolver"
         p:serviceConfigurations-ref="ExtendedAgentResolverResources"
         p:failFast="%{sp.service.agents.failFast:%{idp.service.failFast:false}}"
@@ -36,6 +36,11 @@
         </property>
     </bean>
 
+    <bean id="shibboleth.sp.metrics.AgentGaugeSet"
+        class="net.shibboleth.shared.service.ReloadableServiceGaugeSet" lazy-init="true"
+        c:metricName="net.shibboleth.sp.agent"
+        p:service-ref="shibboleth.sp.AgentResolverService" />
+
     <bean id="shibboleth.RemotedHttpServletRequestSupplier" class="net.shibboleth.sp.messaging.impl.RemotedHttpServletRequestSupplier" />
     <bean id="shibboleth.RemotedHttpServletResponseSupplier" class="net.shibboleth.sp.messaging.impl.RemotedlHttpServletResponseSupplier" />
 
diff --git a/sp-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml b/sp-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml
index 44ebf55..4102728 100644
--- a/sp-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml
+++ b/sp-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml
@@ -30,7 +30,7 @@
         
     <bean id="InitializeAgentRequestContext"
         class="net.shibboleth.sp.authn.impl.InitializeAgentRequestContext" scope="prototype"
-        p:agentResolver-ref="shibboleth.sp.AgentResolver"
+        p:agentResolver-ref="shibboleth.sp.AgentResolverService"
         p:populateMDC="%{idp.logging.MDC.enabled:true}" />
         
     <bean id="CreateOutputMessage"
diff --git a/sp-conf-impl/src/main/resources/net/shibboleth/sp/conf/agents-system.xml b/sp-conf-impl/src/main/resources/net/shibboleth/sp/conf/agents-system.xml
index 590e1ed..3fb8a4d 100644
--- a/sp-conf-impl/src/main/resources/net/shibboleth/sp/conf/agents-system.xml
+++ b/sp-conf-impl/src/main/resources/net/shibboleth/sp/conf/agents-system.xml
@@ -15,8 +15,8 @@
     <!-- Needed to allow for auto-wiring of components. -->
     <context:annotation-config />
 
-    <!-- Exposes auto-wired map of Agents. -->
-    <bean id="shibboleth.sp.AgentResolver" class="net.shibboleth.sp.impl.DefaultAgentResolver" />
+    <!-- Exposes auto-wired resolver of Agents to surrounding service instance. -->
+    <bean class="net.shibboleth.sp.impl.DefaultAgentResolver" />
 
     <!-- Exposes auto-wired protocol support information from protocol plugins. -->
     <bean id="ProtocolSupportServiceManager" class="net.shibboleth.sp.impl.ProtocolSupportServiceManager" />

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


More information about the commits mailing list