<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">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.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 2/11/2021 6:26 AM, Jean-Christophe
MARTIN wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAO1XqRzGdO9cD7z3UF=LaQ2-q1aB+_uZwkopmyCgQNipBsfsEw@mail.gmail.com">
<div style="font-family:sans-serif;font-size:12.8px" dir="auto">
<div><code>i try to map a </code><code>customObject-ref but an
error occurs :<br>
</code></div>
<div><code><br>
</code></div>
<div><code>Cannot cast java.util.LinkedHashMap to
net.shibboleth.utilities.java.support.service.ReloadableService<br>
</code></div>
<div><code><br>
</code></div>
<div><code>Could you help me ?</code></div>
<div><code><br>
</code></div>
<div><code>BR<br>
</code></div>
</div>
<div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br>
<div><code><util:map id=</code><code>"secondFactorMap"</code><code>></code></div>
<div><code> </code><code><entry key=</code><code>"AttributeResolverService"</code> <code>value-ref=</code><code>"shibboleth.AttributeResolverService"</code> <code>/></code></div>
<div><code> </code><code><entry key=</code><code>"HttpServletRequest"</code> <code>value-ref=</code><code>"shibboleth.HttpServletRequest"</code> <code>/></code></div>
<div><code></util:map></code></div>
<div> </div>
<div><code><bean id=</code><code>"secondFactorScriptResource"</code></div>
<div><code> </code><code>class</code><code>=</code><code>"org.springframework.core.io.FileSystemResource"</code></div>
<div><code> </code><code>c:path=</code><code>"%{idp.home}/scripts/mfa/mfa.js"</code> <code>/></code></div>
<div> </div>
<div><code><bean id=</code><code>"secondFactor"</code></div>
<div><code> </code><code>parent=</code><code>"shibboleth.ContextFunctions.Scripted"</code></div>
<div><code> </code><code>factory-method=</code><code>"resourceScript"</code></div>
<div><code> </code><code>p:customObject-ref=</code><code>"secondFactorMap"</code></div>
<div><code> </code><code>c:resource-ref=</code><code>"secondFactorScriptResource"</code><code>/></code></div>
<div> </div>
<div><code><util:map id=</code><code>"shibboleth.authn.MFA.TransitionMap"</code><code>></code></div>
<div><code> </code><code><entry key=</code><code>""</code><code>></code></div>
<div><code> </code><code><bean parent=</code><code>"shibboleth.authn.MFA.Transition"</code> <code>p:nextFlow=</code><code>"authn/Password"</code> <code>/></code></div>
<div><code> </code><code></entry></code></div>
<div><code> </code><code><entry key=</code><code>"authn/Password"</code><code>></code></div>
<div><code> </code><code><bean parent=</code><code>"shibboleth.authn.MFA.Transition"</code> <code>p:nextFlowStrategy-ref=</code><code>"secondFactor"</code> <code>/></code></div>
<div><code> </code><code></entry></code></div>
<div><code></util:map></code></div>
</div>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
%% Christopher A. Bongaarts %% <a class="moz-txt-link-abbreviated" href="mailto:cab@umn.edu">cab@umn.edu</a> %%
%% OIT - Identity Management %% <a class="moz-txt-link-freetext" href="http://umn.edu/~cab">http://umn.edu/~cab</a> %%
%% University of Minnesota %% +1 (612) 625-1809 %%
</pre>
</body>
</html>