<div dir="ltr">I'm trying to use the customObjectReg interface to shibboleth.HttpServletRequest,<div><br></div><div>I'm using the RemoteUser authentication flow in Shibboleth IDP 3.3.1.</div><div>RHEL 6.9, Oracle java 1.8.0_131, Tomcat 8.0.43 fronted by Apache HTTPd 2.2.x and mod_proxy_ajp.<br></div><div><br></div><div><div>    <resolver:AttributeDefinition xmlns="urn:mace:shibboleth:2.0:resolver:ad" xsi:type="Script" id="testAttr" dependencyOnly="false" language="nashorn" customObjectRef="shibboleth.HttpServletResponse"></div><div>        <resolver:Dependency ref="mcommDir"/></div><div>        <Script><![CDATA[</div><div>            logger = Java.type("org.slf4j.LoggerFactory").getLogger("net.shibboleth.idp.attribute.resolver.testAttr");</div><div>            logger.debug("***** " + custom.getHeader("User-Agent"));</div><div>            testAttr.addValue("value");</div><div>        ]]></Script></div><div>    </resolver:AttributeDefinition></div></div><div><br></div><div>Every method I try returns "null".<br></div><div><br></div><div>2017-06-13 16:06:14,207 - DEBUG [net.shibboleth.idp.attribute.resolver.testAttr:2] - xxx.xxx.xxx.xxx  - ***** null<br></div><div><br></div><div><br></div><div>I thought I had the correct usage.   The "custom" variable shows that it's of type net.shibboleth.utilities.java.support.net.ThreadLocalHttpServletResponseProxy</div><div><br></div><div>Any suggestions?</div><div>Liam</div></div>