Custom intercept flow based on attribute value

Marco Naimoli marco.naimoli at unipd.it
Thu Oct 18 09:19:39 EDT 2018


It works perfectly

For people with similar problem:
the bean:

<bean id="beanCheck" 
class="net.shibboleth.idp.profile.logic.SimpleAttributePredicate" 
p:useUnfilteredAttributes="true">
         <property name="attributeValueMap">
                 <map>
                         <entry key="myattribute">
                                 <list>
                                     <value>N</value>
                                 </list>
                         </entry>
                 </map>
         </property>
</bean>

The decision-state in the flow:

     <decision-state id="MyCheck">
         <if test="beanCheck.apply(opensamlProfileRequestContext)"
             then="ActionTrue" else="ActionFalse" />
     </decision-state>

Thank you very much
Marco

Il 18/10/2018 14:16, Cantor, Scott ha scritto:
>> and evaluating it in the flow (created an action-state with evaluate and
>> transition expressions, but in the logs I always found
> I meant changing your decision expression to just take the bean by name and run beanname.apply(opensamlProfileRequestContext) to get the true/false answer.
>
> -- Scott
>



More information about the users mailing list