Conditioned attribute
Jan Marek
jmarek at jcu.cz
Thu Jul 4 05:50:11 UTC 2024
Hello,
it works, many thanks:
<bean id="hasPager" class="net.shibboleth.idp.profile.logic.SimpleAttributePredicate"
p:attributeContextLookupStrategy-ref="shibboleth.ChildLookup.PreRequestedAttributeContext">
<property name="attributeValueMap">
<map>
<entry key="pager">
<list>
<value>*</value>
</list>
</entry>
</map>
</property>
</bean>
<AttributeDefinition xsi:type="Simple" id="pager" preRequested="true">
<InputDataConnector ref="myLDAP" attributeNames="pager"/>
</AttributeDefinition>
<AttributeDefinition xsi:type="Simple" id="roomNumber" activationConditionRef="hasPager">
<InputDataConnector ref="PgIDM" attributeNames="roomNumber"/>
</AttributeDefinition>
<DataConnector id="PgIDM" xsi:type="RelationalDatabase" activationConditionRef="hasPager">
<BeanManagedConnection>shibboleth.IDMStorageService</BeanManagedConnection>
<InputAttributeDefinition ref="pager" />
<QueryTemplate>
<![CDATA[
SELECT room FROM somethink WHERE pager = '${pager[0]}';
]]>
</QueryTemplate>
<Column columnName="mistnost" attributeID="roomNumber"/>
</DataConnector>
I'm sending pager in the attributes too...
When I observe this solutions: maybe I can have
activationConditionRef only in definition of roomNumber, isn't
it?
Sincerely
Jan Marek
Dne Po, čen 17, 2024 at 12:34:43 CEST napsal(a) Rod Widdowson:
> Is the definition of "resolutionContext.pager" marked as preRequested?
>
> https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199503463/PreRequestedAttributes
>
>
> --
> For Consortium Member technical support, see https://shibboleth.atlassian.net/wiki/x/ZYEpPw
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
--
Ing. Jan Marek
University of South Bohemia
Academic Computer Centre
Phone: +420389032080
http://www.gnu.org/philosophy/no-word-attachments.cs.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20240704/d8047b1b/attachment.sig>
More information about the users
mailing list