Handling database errors
Manuel Haim
haim at hrz.uni-marburg.de
Fri Sep 1 07:55:20 EDT 2017
On 01.09.2017 10:58 Rod Widdowson wrote:
>> Is there a way to conditionally define the eduPersonTargetedID and/or
>> StoredId, so they won't break the attribute resolver on database errors?
>
> I'd add a failover for myStoredId to a static dataconnector which resolves nothing.
>
>
Thanks Rod, adding a <FailoverDataConnector> finally helps me to ignore
database errors on IdP 3.3.1:
<!-- Static values -->
<DataConnector id="staticAttributes" xsi:type="Static">
<Attribute id="o">
<Value>Universitaet Marburg</Value>
</Attribute>
<Attribute id="eduPersonOrgDN">
<Value>o=Universitaet Marburg,c=DE</Value>
</Attribute>
</DataConnector>
<!-- persistentId -->
<DataConnector id="myStoredId"
xsi:type="StoredId"
generatedAttributeID="persistentId"
sourceAttributeID="%{idp.persistentId.sourceAttribute}"
queryTimeout="PT5S">
<Dependency ref="%{idp.persistentId.sourceAttribute}" />
<FailoverDataConnector ref="staticAttributes"/>
<BeanManagedConnection
>shibboleth.PostgreSQLDataSource</BeanManagedConnection>
</DataConnector>
Problem solved.
Kind regards,
Manuel
More information about the users
mailing list