[java-oidc-common] branch main updated: JCOMOIDC-202 - Default HTTP client for backend calls should disable redirects by default
Codeberg
noreply at shibboleth.net
Fri Nov 27 14:01:26 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-oidc-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidc-common/commit/9e3af5ed52d50b5f7a149cac12b8a87f06d3e107
The following commit(s) were added to refs/heads/main by this push:
new 9e3af5ed JCOMOIDC-202 - Default HTTP client for backend calls should disable redirects by default
9e3af5ed is described below
commit 9e3af5ed52d50b5f7a149cac12b8a87f06d3e107
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Nov 27 15:53:58 2026 +0200
JCOMOIDC-202 - Default HTTP client for backend calls should disable redirects by default
https://shibboleth.atlassian.net/browse/JCOMOIDC-202
- 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-common-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml b/oidc-common-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
index d9edd2fa..01735b88 100644
--- a/oidc-common-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
+++ b/oidc-common-conf-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}"/>
+
<!-- Manager for auto-wired JWKSetDecorators -->
<bean id="shibboleth.oidc.JWKSetDecoratorManager"
class="net.shibboleth.oidc.security.credential.JWKSetDecoratorManager" />
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list