Add a (unreleased) attribute to audit log

Matthew Slowe M.Slowe at kent.ac.uk
Mon Jun 12 11:36:11 EDT 2017


On 12/06/2017 15:07, Cantor, Scott wrote:
> On 6/12/17, 7:38 AM, "users on behalf of Matthew Slowe" <users-bounces at shibboleth.net on behalf of M.Slowe at kent.ac.uk> wrote:
> 
>> My reading of the Wiki suggests that this is not possible without
>> writing beans ... have I missed something? Is there way to do this in
>> config alone?
> 
> I suspect within some constraints it would be possible to author a (long) Spring expression to do it, and there's also the ability to wire up a scripted implementation of the Function<ProfileRequestContext> interface and do it in a script. Scripts would be more amenable to the error handling needed to avoid null exceptions.
> 
> There aren't any examples in the wiki of actually adding an audit field to the log, so if anybody's done it they've probably had to look at the system file where the audit extractors are. They're basically maps (audit field -> Function returning the value).

Hi Scott,

Hmm, sounds a bit deeper than I'd hoped... where would I start with the
script idea?

Ta,
-- 
Matthew Slowe | Server Infrastructure Officer
IT Infrastructure, Information Services, University of Kent
Room S21, Cornwallis South
Canterbury, Kent, CT2 7NZ, UK
Tel: +44 (0)1227 824265

www.kent.ac.uk/is | @UnikentUnseenIT | @UKCLibraryIt
PGP: https://keybase.io/fooflington


More information about the users mailing list