org.apache.aries.blueprint.authz-1.0.0
[maven-release-plugin]  copy for tag org.apache.aries.blueprint.authz-1.0.0

git-svn-id: https://svn.apache.org/repos/asf/aries/tags/org.apache.aries.blueprint.authz-1.0.0@1637902 13f79535-47bb-0310-9956-ffa450edef68
tree: a354c166d427215a31f6c2ae3b1e1657d1116717
  1. src/
  2. .gitignore
  3. LICENSE
  4. pom.xml
  5. README.md
README.md

Blueprint extension for role based access control based on JAAS and JEE annotations

An aries blueprint extension that supports role based access control based on a JAAS login and the JEE @RolesAllowed annotation.

install -s mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.authz/1.0.0-SNAPSHOT

To use it add the authz namespace xmlns:authz=“http://aries.apache.org/xmlns/authorization/v1.0.0” to your blueprint file and place a authz:enable/ element at the start of your context.

This will enable annotation scanning for all beans in the context. For bean classes that have the @RolesAllowed annotation an Authorization interceptor will be added. This interceptor will read the JAAS Subject from AccesControlContext and use the principles there to do the authorization.

Sample blueprint snippet