Attempting to use 'resourceScript' to see if a second factor is needed

Tom Zeller tzeller at dragonacea.biz
Mon Dec 13 20:10:29 UTC 2021


Just ran into this issue on Tomcat 9, here is what worked (without using an
inline script) :

<bean id="example.checkSecondFactorScript"
  class="org.springframework.core.io.FileSystemResource"
  c:_0="%{idp.home}/conf/authn/checkSecondFactor.js" />

<bean id="checkSecondFactor"
  parent="shibboleth.ContextFunctions.Scripted"
  factory-method="resourceScript"
  c:_0="#{getObject('example.checkSecondFactorScript')}"
  p:customObject-ref="shibboleth.AttributeResolverService"/>

Tom

As for the direct work around, that's a bit beyond my current understanding
>
If it's Tomcat ... the actual direct workaround is a bean to directly
>> instantiate a Filesystem Spring Resource and plug that in instead of using
>> the conversion from String to Resource.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20211213/255bcbde/attachment.htm>


More information about the users mailing list