[java-idp-plugin-oidc-config] branch main updated: JOIDCCONF-13 - Default HTTP client for backend calls should disable redirects by default

Codeberg noreply at shibboleth.net
Fri Nov 27 14:10:06 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-idp-plugin-oidc-config.

View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-oidc-config/commit/e4aa4f116835f95f5b61dc6cbf3dc86ce77913a1

The following commit(s) were added to refs/heads/main by this push:
     new e4aa4f1  JOIDCCONF-13 - Default HTTP client for backend calls should disable redirects by default
e4aa4f1 is described below

commit e4aa4f116835f95f5b61dc6cbf3dc86ce77913a1
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Nov 27 16:08:50 2026 +0200

    JOIDCCONF-13 - Default HTTP client for backend calls should disable redirects by default
    
    https://shibboleth.atlassian.net/browse/JOIDCCONF-13
    
    Copied the commit done to oidc-common-conf-impl for commons snapshot
    - New shibboleth.oidc.DefaultNonBrowser.HttpClient to be used as the default HttpClient for back-end calls
      - Bases on shibboleth.InternalHttpClient, with new configuration properties:
        - idp.oidc.httpClient.disableRedirects (defaults to true)
        - idp.oidc.httpClient.connectionTimeout (defaults to PT10S)
        - idp.oidc.httpClient.socketTimeout (defaults to PT10S)
    - Wired to shibboleth.oidc.RemoteJwkSetCache
      - Can still be customized via previously existing shibboleth.oidc.NonBrowser.HttpClient hook
---
 .../src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/oidc-config-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml b/oidc-config-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
index 88d7c46..994f8ca 100644
--- a/oidc-config-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
+++ b/oidc-config-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
@@ -22,10 +22,15 @@
     <bean id="shibboleth.oidc.RemoteJwkSetCache"
         class="net.shibboleth.oidc.jwk.RemoteJwkSetCache"
         p:storage-ref="#{'%{idp.oidc.jwk.StorageService:shibboleth.StorageService}'.trim()}"
-        p:httpClient="#{getObject('shibboleth.oidc.NonBrowser.HttpClient') ?: getObject('shibboleth.InternalHttpClient')}"
+        p:httpClient="#{getObject('shibboleth.oidc.NonBrowser.HttpClient') ?: getObject('shibboleth.oidc.DefaultNonBrowser.HttpClient')}"
         p:httpClientSecurityParameters="#{getObject('shibboleth.oidc.NonBrowser.HttpClientSecurityParameters')}" 
         p:forcedRefreshCooldown="%{idp.oidc.jwk.RemoteJwkSetCache.forcedRefreshCooldown:PT5S}"/>
 
+    <bean id="shibboleth.oidc.DefaultNonBrowser.HttpClient" parent="shibboleth.InternalHttpClient"
+        p:disableRedirectHandling="%{idp.oidc.httpClient.disableRedirects:true}"
+        p:connectionTimeout="%{idp.oidc.httpClient.connectionTimeout:PT10S}"
+        p:socketTimeout="%{idp.oidc.httpClient.socketTimeout:PT10S}"/>
+
     <bean class="net.shibboleth.idp.spring.DeprecatedPropertyBean">
         <property name="deprecatedProperties">
             <map>

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


More information about the commits mailing list