scripted attribute definition: non-JavaScript/non-Rhino ?
Peter Schober
peter.schober at univie.ac.at
Mon Feb 13 16:36:52 GMT 2012
* Cantor, Scott <cantor.2 at osu.edu> [2012-02-13 17:16]:
> > > Does the name of the BasicAttribute you're creating match the id of
> > > the plugin?
> >
> > Not sure what you mean exactly, but no, I'm creating (or adding to) an
> > eduPersonEntitlement, as in:
> >
> > var eduPersonEntitlement = new BasicAttribute("eduPersonEntitlement");
>
> I think that the scriptlet plugin definition's id has to be
> eduPersonEntitlement then. It's looking for that object on script
> exit. I don't know if it's possible for that message to be clearer,
> but I'm guessing not, maybe it's an artifact of how the script is
> embedded.
Ah! The default/example IdP config comes with an attribute def of
id="eduPersonEntitlement", so I just added a dependency to this
pointing at my scripted attribute def, and of course gave the scripted
attribute def its own id (as I think this needs to be unique in the
IdP config).
Renaming the default defintiton to something else and renaming my
scriped attribute def to eduPersonEntitlement now works as intended.
Trying again with my previous code it seems even my Jython version
works just fine now (modulo some more error/exception handling).
So thats good news for scripting in the IdP, and on-topic here, again ;)
Thanks!
-peter
More information about the users
mailing list