Attribute Resolver Script - Idp3/Java8
ls Lidz
lslidzgeneve at gmail.com
Fri Feb 17 18:48:27 EST 2017
Hi:
Migrating to Java8 and Shibbolet3.
Having a bit of a stumble wrapping my head around the changes for java 8
In below -- the dependency 'bar' has 3 attributes -- where can I declare
this? sourceAttributeId does not seem to be supported?
AttributeDefinition id="foo" xsi:type="ScriptedAttribute">
<Dependency ref="bar" />
<AttributeEncoder xsi:type="SAML2String" name=
"urn:mace:dir:attribute-def:fooBarAttr" friendlyName="fooBarAttr" />
<Script>
<![CDATA[
importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);
importPackage(Packages.org.apache.commons.codec.digest);
importPackage(Packages.org.slf4j);
logger =
LoggerFactory.getLogger("edu.internet2.middleware.shibboleth.resolver.Script.foo");
if (typeof bar != "undefined" && bar != null &&
bar.getValues().size()>0) {
logger.info("Yes -- it works! " + bar.getValues());
}
]]>
</Script>
</AttributeDefinition>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170217/11f3f4b7/attachment-0001.html>
More information about the users
mailing list