On 20/11/2014 10:47, Hermann Angstl wrote:
Hello Francesco,
You could, however, empower Activiti for providing more sensible audit for your
own purpose: add a Java UserTask (see the provided classes for some examples)
which inspects the user request being served (adding roles, in your case)
and invokes the AuditManager with appropriate arguments.
Can you explain this with a little bit more detail?
Hi,
as explained in SYNCOPE-608 [1] summary, the code snippet that does what
required is something like:
String name =
"[REST]:[AuthenticationController]:[]:[login]:[SUCCESS]";
LoggerTO loggerTO = new LoggerTO();
loggerTO.setName(name);
loggerTO.setLevel(LoggerLevel.DEBUG);
LoggerService loggerService = ....;
loggerService.update(LoggerType.AUDIT, name, loggerTO);
Naturally, this code would need require Syncope Java client setup: you
can find an example in this project of mine [2] (check branch 1_2_X).
Anyway, as you can see the original issue has been already fixed in
1.2.2-SNAPSHOT.
Regards.
[1] https://issues.apache.org/jira/browse/SYNCOPE-608
[2] https://github.com/ilgrosso/syncopeRestClient
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/