[java-oidfed-common] 03/03: Provide properties to control entity ID and pre-selected trust chain lookups
Codeberg
noreply at shibboleth.net
Fri Nov 13 16:47:00 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-oidfed-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidfed-common/commit/a0c6c860af5c32c6d80dc760ec4a65db8f87a4f6
commit a0c6c860af5c32c6d80dc760ec4a65db8f87a4f6
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Nov 13 16:34:26 2026 +0200
Provide properties to control entity ID and pre-selected trust chain lookups
- idp.oidfed.admin.resolvertest.EntityIDLookupStrategy
- idp.oidfed.admin.resolvertest.PreSelectedTrustChainIDsLookupStrategy
- idp.oidfed.resolveEntity.EntityIDLookupStrategy
- idp.oidfed.resolveEntity.PreSelectedTrustChainIDsLookupStrategy
---
.../test-trust-chain-resolution-beans.xml | 12 +++++++++---
.../oidfed/resolve-entity/resolve-entity-beans.xml | 21 ++++++++++++++-------
.../resolve-trust-chains-beans.xml | 8 ++++----
.../shibboleth/oidfed/conf/oidfed/oidfed.properties | 4 ++++
4 files changed, 31 insertions(+), 14 deletions(-)
diff --git a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/oidfed/test-trust-chain-resolution/test-trust-chain-resolution-beans.xml b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/oidfed/test-trust-chain-resolution/test-trust-chain-resolution-beans.xml
index f088841..905839f 100644
--- a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/oidfed/test-trust-chain-resolution/test-trust-chain-resolution-beans.xml
+++ b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/oidfed/test-trust-chain-resolution/test-trust-chain-resolution-beans.xml
@@ -26,8 +26,11 @@
<alias alias="FlowDefaultTrustChainMetadataCache"
name="%{idp.oidfed.admin.resolvertest.TrustChainMetadataCache:shibboleth.oidfed.TrustChainMetadataCache}" />
-
- <bean id="shibboleth.oidfed.trust-chain-resolver.EntityIDLookupStrategy"
+
+ <alias alias="FlowDefaultEntityIDLookupStrategy"
+ name="%{idp.oidfed.admin.resolvertest.EntityIDLookupStrategy:DefaultEntityIDLookupStrategy}" />
+
+ <bean id="DefaultEntityIDLookupStrategy"
parent="shibboleth.Functions.Expression"
c:expression="#custom.apply(#input)">
<property name="customObject">
@@ -36,7 +39,10 @@
</property>
</bean>
- <bean id="shibboleth.oidfed.trust-chain-resolver.PreSelectedTrustChainIDsLookupStrategy"
+ <alias alias="FlowDefaultPreSelectedTrustChainIDsLookupStrategy"
+ name="%{idp.oidfed.admin.resolvertest.PreSelectedTrustChainIDsLookupStrategy:DefaultPreSelectedTrustChainIDsLookupStrategy}" />
+
+ <bean id="DefaultPreSelectedTrustChainIDsLookupStrategy"
parent="shibboleth.Functions.Constant"
c:target="#{null}"/>
diff --git a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml
index d0dfcbf..4265dca 100644
--- a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml
+++ b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml
@@ -26,6 +26,20 @@
<alias alias="FlowDefaultTrustChainMetadataCache"
name="%{idp.oidfed.resolveEntity.TrustChainMetadataCache:shibboleth.oidfed.TrustChainMetadataCache}" />
+ <alias alias="FlowDefaultEntityIDLookupStrategy"
+ name="%{idp.oidfed.resolveEntity.EntityIDLookupStrategy:DefaultEntityIDLookupStrategy}" />
+
+ <bean id="DefaultEntityIDLookupStrategy"
+ parent="shibboleth.Functions.Expression"
+ c:expression="'true'.equals(#input.getSubcontext(T(net.shibboleth.idp.authn.context.AuthenticationContext))?.getAuthenticationStateMap()?.get('idp.resolve-entity.resolveForAuthentication')) ? #input.getInboundMessageContext()?.getMessage().getClientAuthentication()?.getClientID()?.getValue() : #input.getInboundMessageContext()?.getMessage()?.getSubject()"/>
+
+ <alias alias="FlowDefaultPreSelectedTrustChainIDsLookupStrategy"
+ name="%{idp.oidfed.resolveEntity.PreSelectedTrustChainIDsLookupStrategy:DefaultPreSelectedTrustChainIDsLookupStrategy}" />
+
+ <bean id="DefaultPreSelectedTrustChainIDsLookupStrategy"
+ parent="shibboleth.Functions.Constant"
+ c:target="#{null}"/>
+
<bean id="DefaultResolveTrustChainsCondition" parent="shibboleth.Conditions.Expression"
c:expression="#input.getInboundMessageContext().getMessage().getClientAuthentication() instanceof T(com.nimbusds.oauth2.sdk.auth.PrivateKeyJWT)" />
@@ -104,9 +118,6 @@
</property>
</bean>
- <bean id="shibboleth.oidfed.trust-chain-resolver.PreSelectedTrustChainIDsLookupStrategy"
- parent="shibboleth.Functions.Expression" c:expression="#null" />
-
<bean id="shibboleth.oidfed.ResolveEntityResponseMetadataCacheBuilderSpec"
class="net.shibboleth.oidc.metadata.cache.impl.DynamicMetadataCacheBuilderSpec"
p:minCacheDuration="%{idp.oidfed.resolveEntity.minRefreshDelay:PT1M}"
@@ -139,10 +150,6 @@
scope="prototype"
p:responseCache-ref="shibboleth.oidfed.ResolveEntityResponseMetadataCache" />
- <bean id="shibboleth.oidfed.trust-chain-resolver.EntityIDLookupStrategy"
- parent="shibboleth.Functions.Expression"
- c:expression="'true'.equals(#input.getSubcontext(T(net.shibboleth.idp.authn.context.AuthenticationContext))?.getAuthenticationStateMap()?.get('idp.resolve-entity.resolveForAuthentication')) ? #input.getInboundMessageContext()?.getMessage().getClientAuthentication()?.getClientID()?.getValue() : #input.getInboundMessageContext()?.getMessage()?.getSubject()"/>
-
<bean id="FlowDefaultMetadataPolicyEnforcer"
class="net.shibboleth.oidc.metadata.policy.impl.DefaultMetadataPolicyEnforcer"
p:failureOnUnknownOperators="false"
diff --git a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml
index 014fc2d..4f2c09c 100644
--- a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml
+++ b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml
@@ -16,8 +16,8 @@
p:resolveEntityTrustChainMetadataCache="#{getObject('shibboleth.oidfed.trust-chain-resolver.ResolveEntityTrustChainMetadataCache') ?: getObject('shibboleth.oidfed.ResolveEntityTrustChainMetadataCache')}"
p:objectMapper="#{getObject('shibboleth.oidfed.trust-chain-resolver.JWTPayloadJSONObjectMapper') ?: getObject('shibboleth.oidfed.JWTPayloadJSONObjectMapper')}"
p:trustedEntitiesLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.TrustedRemoteResolverEntitiesLookupStrategy') ?: getObject('shibboleth.oidfed.DefaultTrustedRemoteResolverEntitiesLookupStrategy')}"
- p:preSelectedTrustChainIdsLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.PreSelectedTrustChainIDsLookupStrategy') ?: getObject('shibboleth.oidfed.DefaultPreSelectedTrustChainIDsLookupStrategy')}"
- p:entityIDLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.EntityIDLookupStrategy') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultEntityIDLookupStrategy')}"
+ p:preSelectedTrustChainIdsLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.PreSelectedTrustChainIDsLookupStrategy') ?: getObject('FlowDefaultPreSelectedTrustChainIDsLookupStrategy')}"
+ p:entityIDLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.EntityIDLookupStrategy') ?: getObject('FlowDefaultEntityIDLookupStrategy')}"
p:requireEntityConfigurationCondition="#{getObject('shibboleth.oidfed.trust-chain-resolver.RequireEntityConfigurationCondition') ?: getObject('shibboleth.Conditions.FALSE')}"
p:entityConfigurationLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.EntityConfigurationLookupStrategy') ?: getObject('ConstantNull')}"/>
@@ -28,11 +28,11 @@
p:trustChainCache="#{getObject('shibboleth.oidfed.trust-chain-resolver.TrustChainMetadataCache') ?: getObject('FlowDefaultTrustChainMetadataCache') ?: getObject('shibboleth.oidfed.TrustChainMetadataCache')}"
p:metadataPolicyMergingStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.TrustChainMetadataPolicyMergingStrategy') ?: getObject('FlowDefaultTrustChainMetadataPolicyMergingStrategy') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultTrustChainMetadataPolicyMergingStrategy')}"
p:metadataPolicyEnforcer="#{getObject('shibboleth.oidfed.trust-chain-resolver.MetadataPolicyEnforcer') ?: getObject('FlowDefaultMetadataPolicyEnforcer') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultMetadataPolicyEnforcer')}"
- p:preSelectedTrustChainIdsLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.PreSelectedTrustChainIDsLookupStrategy') ?: getObject('shibboleth.oidfed.DefaultPreSelectedTrustChainIDsLookupStrategy')}"
+ p:preSelectedTrustChainIdsLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.PreSelectedTrustChainIDsLookupStrategy') ?: getObject('FlowDefaultPreSelectedTrustChainIDsLookupStrategy')}"
p:arraysAsSpaceSeparatedList="#{getObject('shibboleth.oidfed.trust-chain-resolver.ArrayAsSpaceSeparatedList') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultArrayAsSpaceSeparatedList')}"
p:metadataValidationCondition="#{getObject('shibboleth.oidfed.trust-chain-resolver.MetadataValidationCondition') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultMetadataValidationCondition')}"
p:federationPolicyConstraints="#{getObject('shibboleth.oidfed.trust-chain-resolver.FederationPolicyConstraints') ?: getObject('shibboleth.oidfed.DefaultFederationPolicyConstraints')}"
- p:entityIDLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.EntityIDLookupStrategy') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultEntityIDLookupStrategy')}"
+ p:entityIDLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.EntityIDLookupStrategy') ?: getObject('FlowDefaultEntityIDLookupStrategy')}"
p:requireEntityConfigurationCondition="#{getObject('shibboleth.oidfed.trust-chain-resolver.RequireEntityConfigurationCondition') ?: getObject('shibboleth.Conditions.FALSE')}"
p:entityConfigurationLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.EntityConfigurationLookupStrategy') ?: getObject('ConstantNull')}"
p:metadataLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.CombinedMetadataFromTrustChainLookupStrategy') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultCombinedMetadataFromTrustChainLookupStrategy')}" />
diff --git a/oidfed-common-impl/src/main/resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties b/oidfed-common-impl/src/main/resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties
index 46cffd9..f57a9ed 100644
--- a/oidfed-common-impl/src/main/resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties
+++ b/oidfed-common-impl/src/main/resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties
@@ -130,6 +130,8 @@
#idp.oidfed.admin.resolvertest.LocalTrustAnchorsMetadataCache = shibboleth.oidfed.LocalTrustAnchorsMetadataCache
#idp.oidfed.admin.resolvertest.TrustMarkStatusMetadataCache = shibboleth.oidfed.TrustMarkStatusMetadataCache
#idp.oidfed.admin.resolvertest.TrustedTrustMarkIssuersOnlyCondition = shibboleth.Conditions.TRUE
+#idp.oidfed.admin.resolvertest.EntityIDLookupStrategy = DefaultEntityIDLookupStrategy
+#idp.oidfed.admin.resolvertest.PreSelectedTrustChainIDsLookupStrategy = DefaultPreSelectedTrustChainIDsLookupStrategy
# resolve-entity-beans
#idp.oidfed.resolveEntity.authn.flows = OAuth2Client
@@ -153,3 +155,5 @@
#idp.oidfed.resolveEntity.maxRefreshDelay = PT30M
#idp.oidfed.resolveEntity.remoteTrustMarkValidation = true
#idp.oidfed.resolveEntity.requireRemoteTrustMarkValidation = true
+#idp.oidfed.resolveEntity.EntityIDLookupStrategy = DefaultEntityIDLookupStrategy
+#idp.oidfed.resolveEntity.PreSelectedTrustChainIDsLookupStrategy = DefaultPreSelectedTrustChainIDsLookupStrategy
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list