Scripted Modification to eduPersonAffiliation
Cantor, Scott
cantor.2 at osu.edu
Wed Jan 3 13:57:41 EST 2018
On 1/3/18, 1:05 PM, "users on behalf of Michael Dahlberg" <users-bounces at shibboleth.net on behalf of olgamirth at gmail.com> wrote:
> (1) I've looked for some documentation on the scripting engine within the IdP and there does not look like there is
> much.
It's not *our* scripting engine, it's Java's. There is quite a bit of documentation our there for the two Javascript engines, I refer to the Rhino and Nashorn docs quite a lot.
> Other than that found in https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition,
> would you be able to point me in the direction of some examples/descriptions of the functions?
Our API is documented with published javadocs, and we have links as much as possible from the wiki documentation back into the relevant docs that cover the Java classes. Given a Java object in hand it's not anything special to use the object's methods from Javascript. It's accessing class objects and static methods that can be a bit ugly.
> (2) From the examples in the default attribute-resolver.xml file, it looks like the add("") function overwrites the existing
> values. Does the addValues("") function append a value to the existing value?
It adds a value to the existing collection of values. Has no effect on existing values.
> (3) If ePA is multi-valued, what would the resulting attributes be for eduPersonScopedAffiliation:
> (student,member at example.edu) or (student at example.edu,member at example.edu)?
The latter.
-- Scott
More information about the users
mailing list