[java-identity-provider] branch main updated: Add property to suppress User-Agent decoration.

Codeberg noreply at shibboleth.net
Mon Oct 19 14:37:11 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/beb255fee3185da82b24fc5b12044597c9ce516b

The following commit(s) were added to refs/heads/main by this push:
     new beb255fee Add property to suppress User-Agent decoration.
beb255fee is described below

commit beb255fee3185da82b24fc5b12044597c9ce516b
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Oct 19 10:37:01 2026 -0400

    Add property to suppress User-Agent decoration.
---
 .../src/main/resources/net/shibboleth/idp/conf/http-client.xml      | 6 +++---
 .../resources/net/shibboleth/idp/module/conf/services.properties    | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/http-client.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/http-client.xml
index 2b3411803..4e4510b96 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/http-client.xml
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/http-client.xml
@@ -32,13 +32,13 @@
     
     <bean id="shibboleth.HttpClientFactory" abstract="true"
         class="net.shibboleth.shared.spring.httpclient.factory.HttpClientFactoryBean"
-        p:userAgent-ref="shibboleth.HttpClientUserAgent" />
+        p:userAgent="#{%{idp.httpclient.decorateUserAgent:true} ?: getObject('shibboleth.HttpClientUserAgent')}" />
     <bean id="shibboleth.FileCachingHttpClientFactory" abstract="true"
         class="net.shibboleth.shared.spring.httpclient.factory.FileCachingHttpClientFactoryBean"
-        p:userAgent-ref="shibboleth.HttpClientUserAgent" />
+        p:userAgent="#{%{idp.httpclient.decorateUserAgent:true} ?: getObject('shibboleth.HttpClientUserAgent')}" />
     <bean id="shibboleth.MemoryCachingHttpClientFactory" abstract="true"
         class="net.shibboleth.shared.spring.httpclient.factory.InMemoryCachingHttpClientFactoryBean"
-        p:userAgent-ref="shibboleth.HttpClientUserAgent" />
+        p:userAgent="#{%{idp.httpclient.decorateUserAgent:true} ?: getObject('shibboleth.HttpClientUserAgent')}" />
 
     <bean id="shibboleth.HTTPResource" abstract="true"
         class="net.shibboleth.spring.http.HTTPResourceFactoryBean" />
diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/services.properties b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/services.properties
index 744acab4f..65ad54ba9 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/services.properties
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/services.properties
@@ -73,3 +73,4 @@ idp.service.managedBean.checkInterval = PT15M
 #idp.httpclient.requestTimeoutCorePoolSize = 20
 #idp.httpclient.maxConnectionsTotal = 100
 #idp.httpclient.maxConnectionsPerRoute = 100
+#idp.httpclient.decorateUserAgent = true

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


More information about the commits mailing list