accessing user principal in scripted attributes
Liam Hoekenga
liamr at umich.edu
Fri Jun 12 10:08:00 EDT 2015
I'm trying to update our scripted attributes to IdP v3 + Nashorn.
Based on the v2 compatibility section, I expected that this might work...
principal = requestContext.principalName;
but that returns...
net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedAttributeDefinition.doAttributeDefinitionResolve(ScriptedAttributeDefinition.java:152)
Caused by: javax.script.ScriptException: TypeError: Cannot get property
"principalName" of null in <eval> at line number 11
The docs mention a number of contexts that are available as variables. I
assumed that meant they'd be available without available without
.getSubcontext(). I've tried both resolutionContext.principal
and resolutionContext.getPrincipal(), but get errors stating that
resolutionContext is null.
What am I missing?
Liam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150612/23c0f55a/attachment.html>
More information about the users
mailing list