<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="2"><span style="font-size:10pt;">Hello,<br>
<br>
We use a mariaDB database to store persistentId. This attribute is required by a very small number of relying party in our federation (maybe less than 5%).<br>
<br>
When database is unavailable, every relying party cant use our identity provider. Using "onlyIfRequired" property in a attribute filter's rule don't work because eduPersonTargetedId (=persistentId) is always resolved and a failure equals to no attribute set
 in saml response (<a href="https://wiki.shibboleth.net/confluence/display/IDP30/AttributeFilterConfiguration#AttributeFilterConfiguration-Errorhandling" target="_blank">https://wiki.shibboleth.net/confluence/display/IDP30/AttributeFilterConfiguration#AttributeFilterConfiguration-Errorhandling</a>).
<br>
Moreover, identity provider create a persistentId for each new couple of user/relyingParty, if needed or not.<br>
<br>
I would like to limit eduPersonTargetedId resolving based on AttributeConsumingService of the current relying party. I try to access requestedAttribute list with a ActivationCondition. This condition is call in activationConditionRef property on eduPersonTargetedId's
 AttributeDefinition and storeId DataConnector in attribute-resolver.xml.<br>
<br>
I dont know how access current entityId's metadata in this activationCondition. I find a method getRequestAttributes() from AttributeConsumingServiceImpl class in opensaml javadoc but i dont know if i can use it.<br>
<a href="https://build.shibboleth.net/nexus/service/local/repositories/site/content/java-opensaml/3.4.3/apidocs/org/opensaml/saml/saml2/metadata/impl/AttributeConsumingServiceImpl.html" target="_blank">https://build.shibboleth.net/nexus/service/local/repositories/site/content/java-opensaml/3.4.3/apidocs/org/opensaml/saml/saml2/metadata/impl/AttributeConsumingServiceImpl.html</a><br>
<br>
Maybe someone here have try to do something like this ? Did you have any hints or example ?<br>
Thank you.<br>
<br>
Regards, Gilian.</span></font></div>
</body>
</html>