Scripted Attribute
Bryan Wooten
bryan.wooten at utah.edu
Fri Jul 22 10:32:25 EDT 2016
Thanks Scott,
So the scripts are more java than javascript...
My google foo is failing me. Where can I find java docs on IdpAttribute class and methods like getValues()?
Also is there a preferred way to test these scripts before adding them to the attribute-resolver.xml?
While I am here I might as well explain what I am trying to do, maybe I am going about it all wrong.
We have a multi valued attribute called uuenrl for students course enrollments. It looks like this:
"Summer 2016$7981$EAS$1060$001$LEC$Expository Wrtg for EAS$3$1","Summer 2016$7982$EAS$1060$001$LEC$Technical Wrtg for EAS$3$1"
It has all the information I need to transform it into eduCourseOffering that looks like this:
2010:fall:PHYS218509
I was planning on using scripting to do this.
Thanks!
Bryan Wooten
Tel: (801)585-9323
Email: bryan.wooten at utah.edu
-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Thursday, July 21, 2016 12:52 PM
To: Shib Users <users at shibboleth.net>
Subject: [Ext] RE: Scripted Attribute
> So I attempting to define my first scripted attribute for my test SP
> and I am getting this error in idp-process.log:
You're trying to access the attribute values as an array, and they're not. Accessing values involves the getValues() method on the IdPAttribute class, which returns a collection you have to call methods on. Shortcuts don't, in general, work. It's not that kind of scripting environment, it's bridging to real Java and you have to call real methods for the most part.
-- Scott
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list