V3 -- Scripted Attribute Definition
Cantor, Scott
cantor.2 at osu.edu
Tue Jun 6 11:27:25 EDT 2017
On 6/6/17, 11:20 AM, "users on behalf of Joel Levin" <users-bounces at shibboleth.net on behalf of joel.aaron.levin at gmail.com> wrote:
> Could anyone help?
Well, principally, the definition says you're creating fooBarEntitlement, but then your script creates an Attribute called scriptedValueEntitlement, so that's just not going to work.
Secondarily, this isn't how V3 (or V2, under Nashorn) scripts work. You need to prevent creating a "new" copy of the attribute because V3 already creates the output attribute (see ScriptedAttributeDefinition, Java 1.8 and Nashorn).
My advice is that you get your scripts working under V2 and Java 8/Nashorn first. Once that's done, they should work largely unmodified under V3. You're mixing changes here. There's no way that script could have worked under V2 that I can see because of the name mismatch.
-- Scott
More information about the users
mailing list