<div dir="ltr">I'm trying to load a script from a separate file rather than including the source inline in a bean. This is to make linting and editing easier. Unfortunately, I'm finding that the absolute resource path that I supply is always prefixed with /opt/shibboleth-idp/system/flows/authn/ when the idp tries to load the file, thus causing the file not to be found.<div><br><div>My original setup is based on the example at <a href="https://wiki.shibboleth.net/confluence/display/IDP4/MultiFactorAuthnConfiguration#55804289a3d92e63b12449a2a6f87810900f5178">https://wiki.shibboleth.net/confluence/display/IDP4/MultiFactorAuthnConfiguration#55804289a3d92e63b12449a2a6f87810900f5178</a>. I've changed my bean definition in conf/authn/mfa-authn-config.xml to this:<br><div><br></div><div><bean id="checkSecondFactor" parent="shibboleth.ContextFunctions.Scripted" factory-method="resourceScript"<br>          c:resource="<b>/opt/shibboleth-idp/conf/authn/checkSecondFactor.js</b>"<br>          p:customObject-ref="shibboleth.AttributeResolverService" /></div><div><div><br></div><div>However, the IdP (4.0.1) throws this error when it tries to load the script:</div><div>java.io.FileNotFoundException: <b>/opt/shibboleth-idp/system/flows/authn</b>/opt/shibboleth-idp/conf/authn/checkSecondFactor.js</div><div><div></div></div><div><br></div><div>I can work around this using "../../../conf/authn/checkSecondFactor.js" as my resource path, but it's not pretty.</div><div><br></div><div>Is this expected behaviour? Or a bug?</div><div><br></div><div>Thanks,</div><div><br></div><div>Max Spicer</div></div></div></div></div>