aacli Scripted attribute
Athanasios Douitsis
aduitsis at gmail.com
Thu Oct 29 18:43:49 EDT 2015
Peter, hello and thank you very much for taking the time to respond!,
Unfortunately you are referring to V3 and I'm still using V2. So, IdPV2 and
Java8, the tag team from hell :)
I was able to make a very rudimentary example work. I used a static
connector with e.g. attribute testing=dummy and then used a script
connector that just did something to testing, like
testing.getValues().add("whatever"). There is also the clear method which
could eliminate the dummy value. As far as I can tell from the wiki, for V2
and Java8 there is no way around the static connector, i.e. one cannot
initialize a new attribute from inside the script. So the attribute must
come from outside, hence the static connector.
Any comments welcome of course.
Best regards,
Athanasios
On Thu, Oct 29, 2015 at 7:26 PM, Peter Schober <peter.schober at univie.ac.at>
wrote:
> * Peter Schober <peter.schober at univie.ac.at> [2015-10-29 18:21]:
> > * Peter Schober <peter.schober at univie.ac.at> [2015-10-29 18:19]:
> > > That doesn't do anything other than (for an attribute definition with
> > > id="Foo") Foo.addValue() either and worked fine for me.
> >
> > The difference is I call addValue() whereas you are calling
> > getValues() when there can't be any yet as per your code, AFAIU.
>
> Hm, in your case getValues() should return an empty collection, to
> which you should be able to add string values per the docs?
> Either way, I think your testing.getValues().add("whatever") should
> just be testing.addValue("whatever") and that should work.
> -peter
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
--
Athanasios Douitsis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151030/2dac68f0/attachment.html>
More information about the users
mailing list