ELException on IdP 4.0.1

Ramon Pfeiffer ramon.pfeiffer at uni-tuebingen.de
Thu Nov 26 11:06:50 UTC 2020



Am 25.11.2020 um 18:11 schrieb Cantor, Scott:
> On 11/25/20, 12:03 PM, "users on behalf of Ramon Pfeiffer" <users-bounces at shibboleth.net on behalf of ramon.pfeiffer at uni-tuebingen.de> wrote:
>>     For my understanding, is it possible to use an inline script for a
>>     Condition that returns just a boolean value true or false?
> 
> Yes, as long as the eventual consumer of the object expects it to be one. The docs for any built-in beans or reserved names will document which it has to be.

It seems I'm still missing something.

According to the docs, the context check can work in Condition Mode. 
However, even when using a simple inline script like

<bean id="shibboleth.context-check.Condition"
   parent="shibboleth.ContextFunctions.Scripted"
   factory-method="inlineScript">
   <constructor-arg>
     <value>
       <![CDATA[
         var result = true;
         result;
       ]]>
     </value>
   </constructor-arg>
</bean>

the ELException I mentioned before is thrown.

I understand Function Mode is the recommended way to go and I 
successfully got the check working in that mode - I'm just trying to 
figure out why it didn't work in Condition Mode.

Thanks and best regards
Ramon Pfeiffer

-- 
--
Universität Tübingen
Zentrum für Datenverarbeitung
Wächterstraße 76
72074 Tübingen

E-Mail: ramon.pfeiffer at uni-tuebingen.de
Telefon: +49-7071-29-70213

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5437 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://shibboleth.net/pipermail/users/attachments/20201126/ffcd0043/attachment.p7s>


More information about the users mailing list