Accessing Attributes from LoginHandler via attribute-resolver.xml

Cantor, Scott cantor.2 at osu.edu
Thu Dec 20 13:23:34 EST 2012


On 12/20/12 12:58 PM, "Etan Weintraub" <eweintra at jhmi.edu> wrote:
>I get the following error (trimmed up a bit for here) in the
>idp-process.log:
> 
>12:37:24.988 - ERROR
>[edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.at
>tributeDefinition.ScriptedAttributeDefinition:135] -
>ScriptletAttributeDefinition EtanFullName unable to execute script
>com.sun.phobos.script.util.ExtendedScriptException:
>org.mozilla.javascript.EcmaError: ReferenceError: "$requestContext" is
>not defined. (<Unknown Source>#3) in <Unknown Source> at line number 3
> 
>Any ideas?

Well, I don't think it would be accessed with a $ in front in a scriptlet,
that's a Velocity template thing.

That said, I don't know exactly what is made available to the Script
definition as local variables in the script.

If nobody else does, and presuming it's not documented, I can track it
down when I have some time and add it to the wiki.

-- Scott




More information about the users mailing list