Cannot cast java.util.LinkedHashMap to net.shibboleth.utilities.java.support.service.ReloadableService
Christopher Bongaarts
cab at umn.edu
Thu Feb 11 18:57:41 UTC 2021
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 %%
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20210211/9d6b52c4/attachment.htm>
More information about the users
mailing list