Cannot cast java.util.LinkedHashMap to net.shibboleth.utilities.java.support.service.ReloadableService

Jean-Christophe MARTIN goffiojc at gmail.com
Fri Feb 12 10:36:51 UTC 2021


Thks a lot Christopher.

I forgot to call the good key map custom object.
Sorry for the inconvenience.

JC

Le jeu. 11 févr. 2021 à 19:57, Christopher Bongaarts via users <
users at shibboleth.net> a écrit :

> Your external mfa.js script is using the customObject (a Map) where the
> function you're calling/passing it to is expecting a Service.  Since the
> Map values are Services, you presumably just need to have the script choose
> one of the map values to pass instead of the Map itself.
>
> On 2/11/2021 6:26 AM, Jean-Christophe MARTIN wrote:
>
> i try to map a customObject-ref but an error occurs :
>
> Cannot cast java.util.LinkedHashMap to
> net.shibboleth.utilities.java.support.service.ReloadableService
>
> Could you help me ?
>
> BR
>
> <util:map id="secondFactorMap">
>     <entry key="AttributeResolverService" value-ref=
> "shibboleth.AttributeResolverService" />
>     <entry key="HttpServletRequest"       value-ref=
> "shibboleth.HttpServletRequest" />
> </util:map>
>
> <bean id="secondFactorScriptResource"
>       class="org.springframework.core.io.FileSystemResource"
>       c:path="%{idp.home}/scripts/mfa/mfa.js" />
>
> <bean id="secondFactor"
>       parent="shibboleth.ContextFunctions.Scripted"
>       factory-method="resourceScript"
>       p:customObject-ref="secondFactorMap"
>       c:resource-ref="secondFactorScriptResource"/>
>
> <util:map id="shibboleth.authn.MFA.TransitionMap">
>     <entry key="">
>         <bean parent="shibboleth.authn.MFA.Transition" p:nextFlow=
> "authn/Password" />
>     </entry>
>     <entry key="authn/Password">
>         <bean parent="shibboleth.authn.MFA.Transition"
> p:nextFlowStrategy-ref="secondFactor" />
>     </entry>
> </util:map>
>
>
> --
> %%  Christopher A. Bongaarts   %%  cab at umn.edu          %%
> %%  OIT - Identity Management  %%  http://umn.edu/~cab  %%
> %%  University of Minnesota    %%  +1 (612) 625-1809    %%
>
> --
> For Consortium Member technical support, see
> https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20210212/4c2c07f9/attachment.htm>


More information about the users mailing list