<div dir="auto"><span style="font-family:sans-serif">Thks a lot Christopher.</span><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif">I forgot to call the good key map custom object.</div><div dir="auto" style="font-family:sans-serif">Sorry for the inconvenience. </div><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif">JC</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 11 févr. 2021 à 19:57, Christopher Bongaarts via users <<a href="mailto:users@shibboleth.net">users@shibboleth.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>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><br>
</div>
<div>On 2/11/2021 6:26 AM, Jean-Christophe
MARTIN wrote:<br>
</div>
<blockquote type="cite">
<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 cols="72">--
%% Christopher A. Bongaarts %% <a href="mailto:cab@umn.edu" target="_blank" rel="noreferrer">cab@umn.edu</a> %%
%% OIT - Identity Management %% <a href="http://umn.edu/~cab" target="_blank" rel="noreferrer">http://umn.edu/~cab</a> %%
%% University of Minnesota %% +1 (612) 625-1809 %%
</pre>
</div>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="noreferrer noreferrer" target="_blank">https://wiki.shibboleth.net/confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank" rel="noreferrer">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div>