Moving scripts to idp v3 from idp v2

Creado, Sylvester J. S. Sylvester.Creado at lmu.edu
Tue Nov 10 11:54:01 EST 2015


Thanks Scott,

I actually got both to work.

I got the Nashorn to work by removing the ( null == email_aliases_script), as you said the input attribute is created for me.


I also added the rhino jars to the idp.war. 

I am on windows: I created a copy of the original idp.war. I just changed the .war to .zip, navigated to the lib directory and dragged and dropped the two .jar files into the .zip. Once this was done I renamed back to .war

Grace and Peace,
Sylvester

-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Monday, November 09, 2015 2:14 PM
To: Shib Users
Subject: Re: Moving scripts to idp v3 from idp v2


On 11/9/15, 5:05 PM, "users on behalf of Creado, Sylvester J. S." <users-bounces at shibboleth.net on behalf of Sylvester.Creado at lmu.edu> wrote:

>Hi,
>
>I am trying to move a script from idpv2 to idpv3. The script is as below

It looks more like you're trying to move to Java 8, not IdP 3. You're still using deprecated compatibility interfaces and such, so that's a very different animal from actually updating the script. My advice is to not bother with Nashorn and see if it works unmodified with Rhino added to the warfile.

Failing that, I would suggest you get the V2 script working with V2 on Java 8 and Nashorn. Basically, pick a change, but not two at the same time if possible.

Secondly, maybe I'm wrong but your new script looks suspect to me. The conditional block for if( null == email_aliases_script) seems to be wrapping the entire script. Since I believe on V3, the input attribute is created for you (and must be, with Nashorn), that means you're basically bypassing the entire script on V3 since the attribute won't ever be null on input.

-- Scott

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


More information about the users mailing list