It was plan by David. But the purpose, as you said, is to avoid to change anything: intercept the current service (the commands are services).

Regards
JB

On 11/12/2013 08:41 AM, Christian Schneider wrote:
The role based security currently does not support annotations as far as
I know. It should be possible to extend the mechanism in this way.
I added an isseu to track this:
https://issues.apache.org/jira/browse/KARAF-2570

Btw. the current implementation has the advantage that you can protect
services without changing them.

Christian

Am 12.11.2013 05:28, schrieb Mansour Al Akeel:
I am try to understand how to get role based security to work. As I
was searching, I found this thread and the implementation

http://karaf.922171.n3.nabble.com/Some-thoughts-around-adding-security-for-Karaf-Shell-Commands-td4029474.html


https://issues.apache.org/jira/browse/KARAF-2455

Which (fortunately) has been merged into the trunk.

Still, I can not find documentation or a complete example on how to
secure a service using annotation like @RolesAllowed or @RunAs .. etc.



Thank you.



--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to