<div dir="ltr"><div><span style="font-size:12.8000001907349px">I tried those. </span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">> requestContext is the simulation of the old V2 context and for that you need</span></div><div><span style="font-size:12.8000001907349px">> to call requestContext.</span><span style="font-size:12.8000001907349px">getPrincipalName().</span><br style="font-size:12.8000001907349px"></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><div style><span style="font-size:12.8000001907349px">uniqueValue = requestContext.getPrincipalName() + salt;</span></div><div style><span style="font-size:12.8000001907349px"><br></span></div><div style><span style="font-size:12.8000001907349px">2015-06-12 09:38:44,913 - ERROR [net.shibboleth.idp.profile.impl.ResolveAttributes:256] - Profile Action ResolveAttributes: Error resolving attributes</span></div><div style><span style="font-size:12.8000001907349px">net.shibboleth.idp.attribute.resolver.ResolutionException: Attribute Definition 'umichPersonUniqueId': unable to execute script</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">       </span>at net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedAttributeDefinition.doAttributeDefinitionResolve(ScriptedAttributeDefinition.java:152)</span></div><div style><span style="font-size:12.8000001907349px">Caused by: javax.script.ScriptException: TypeError: null has no such function "getPrincipalName" in <eval> at line number 11</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">     </span>at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:455)</span></div><div style><span style="font-size:12.8000001907349px">Caused by: jdk.nashorn.internal.runtime.ECMAException: TypeError: null has no such function "getPrincipalName"</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">   </span>at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)</span></div><div style="font-size:12.8000001907349px"><br></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">> In V3 it's called resolutionContext and you call resolutionContext <span style="font-size:12.8000001907349px">.getPrincipal()</span></div></div><div style="font-size:12.8000001907349px"><br></div><div style><div style><span style="font-size:12.8000001907349px">uniqueValue = resolutionContext.getPrincipal() + salt;</span></div><div style><br></div><div style><span style="font-size:12.8000001907349px">2015-06-12 09:54:14,998 - ERROR [net.shibboleth.idp.profile.impl.ResolveAttributes:256] - Profile Action ResolveAttributes: Error resolving attributes</span></div><div style><span style="font-size:12.8000001907349px">net.shibboleth.idp.attribute.resolver.ResolutionException: Attribute Definition 'umichPersonUniqueId': unable to execute script</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">   </span>at net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedAttributeDefinition.doAttributeDefinitionResolve(ScriptedAttributeDefinition.java:152)</span></div><div style><span style="font-size:12.8000001907349px">Caused by: javax.script.ScriptException: TypeError: null has no such function "getPrincipal" in <eval> at line number 11</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre"> </span>at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:455)</span></div><div style><span style="font-size:12.8000001907349px">Caused by: jdk.nashorn.internal.runtime.ECMAException: TypeError: null has no such function "getPrincipal"</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">       </span>at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)</span></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Liam</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 13, 2015 at 6:28 AM, Rod Widdowson <span dir="ltr"><<a href="mailto:rdw@steadingsoftware.com" target="_blank">rdw@steadingsoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It's always obvious when you see it......<br>
<br>
requestContext is the simulation of the old V2 context and for that you need<br>
to call requestContext.getPrincipalName().<br>
<br>
In V3 it's called resolutionContext and you call resolutionContext<br>
.getPrincipal()<br>
<span class="HOEnZb"><font color="#888888"><br>
/Rod<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</div></div></blockquote></div><br></div>