<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi, Scott.</div><div><br></div><div>Thanks to your advice, I could solve that.</div><div><br></div><div>The way I did is as follows:</div><div><br></div><div>I added the statement marked as "added" to conf/authn/mfa-authn-config.xml.</div><div><br></div>    <util:map id="secondFactorHelpersMap"><br>        <entry key="attributeResolver" value-ref="shibboleth.AttributeResolverService" /><br>        <entry key="totpAuthnSessionChecker" value-ref="TotpAuthnSessionChecker" /><br>        <entry key="httpServletRequestContext" value-ref="shibboleth.HttpServletRequest" /> // added<br>    </util:map></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">And then, I added the following statement inside bean tag</div><div dir="ltr">whose attribute is 'parent="shibboleth.ContextFunctions.Scripted"'.</div><br>httpRequestServletContext = custom.get("httpServletRequestContext");<br><a href="http://logger.info">logger.info</a>("IP Address:" + httpRequestServletContext.remoteAddr);<div dir="ltr"><br></div><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 11:27 PM Cantor, Scott <<a href="mailto:cantor.2@osu.edu">cantor.2@osu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 2/5/19, 9:19 AM, "users on behalf of Noriyuki TAKEI" <<a href="mailto:users-bounces@shibboleth.net" target="_blank">users-bounces@shibboleth.net</a> on behalf of <a href="mailto:ntakei@sios.com" target="_blank">ntakei@sios.com</a>> wrote:<br>
<br>
> But I’ve already defined p:customObject-ref to get another custom bean I developed.<br>
<br>
Define a map of objects in Spring and inject the map as the custom object. Obvious trick once you know it.<br>
<br>
-- Scott<br>
<br>
<br>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="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">users-unsubscribe@shibboleth.net</a></blockquote></div><br clear="all"><div><br></div></div></div></div></div></div></div></div>