Accessing Attributes from LoginHandler via attribute-resolver.xml

Etan Weintraub eweintra at jhmi.edu
Thu Dec 20 13:27:26 EST 2012


Thanks Scott.

I used the $ because that's what I saw in the DataConnector examples. I'll try it without the $ and a few other ideas and report back...

-Etan E. Weintraub
Sr. Systems Engineer
Directory Architecture
IT at Johns Hopkins
Johns Hopkins at Mt. Washington
5801 Smith Ave.
Suite 3110B
Baltimore, MD 21209
Phone: 410-735-7945
E-mail: eweintra at jhmi.edu

-----Original Message-----
From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Thursday, December 20, 2012 1:24 PM
To: Shib Users
Subject: Re: Accessing Attributes from LoginHandler via attribute-resolver.xml

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


--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net


More information about the users mailing list