Custom intercept flow based on attribute value
Marco Naimoli
marco.naimoli at unipd.it
Wed Oct 17 11:14:17 EDT 2018
Hello, I wrote a simple intercept flow and it works; now I'd like to
apply this intercept
only if an attribute has a specific value; to do so I've added the
following decision state:
<decision-state id="MyCheck">
<if
test="opensamlProfileRequestContext.getSubcontext(T(net.shibboleth.idp.profile.context.RelyingPartyContext)).getSubcontext(T(net.shibboleth.idp.attribute.context.AttributeContext)).getUnfilteredIdPAttributes().get('myattribute').getValues().get(0).equals('N')"
then="ActionTrue" else="ActionFalse" />
</decision-state>
"myattribute" has two possible values, "S" or "N"; but the result of the
decision-state is always "ActionFalse", even if
I set the attribute with the static value of 'N'
Logs says:
Executing [Transition at 4e74d03d on = *, to = ActionFalse]
Does anyone can help me to understand what's wrong with my test condition ?
Thank you
Marco
More information about the users
mailing list