Switch branches/tags
web-0.3 web-0.2-incubating web-0.1-incubating transaction-0.3 transaction-0.2-incubating transaction-0.1-incubating testsupport-0.3 testsupport-0.2-incubating testsupport-0.1-incubating samples-0.3 samples-0.2-incubating samples-0.1-incubating quiesce-0.3 quiesce-0.2-incubating proxy-0.3 parent-0.5 parent-0.4 parent-0.3 parent-0.2-incubating parent-0.1-incubating org.apache.aries.util-0.4 org.apache.aries.util-0.3 org.apache.aries.util-0.2.1 org.apache.aries.util-0.2-incubating org.apache.aries.util-0.1-incubating org.apache.aries.testsupport.unit-0.4 org.apache.aries.quiesce.manager.itest-0.3.1 org.apache.aries.quiesce.manager-0.3.1 org.apache.aries.proxy.itests-0.4 org.apache.aries.proxy.impl-0.5 org.apache.aries.proxy.impl-0.4 org.apache.aries.proxy.api-0.4 org.apache.aries.proxy-distro-0.8 org.apache.aries.proxy-0.4 org.apache.aries.blueprint.sample-fragment-0.3.2 org.apache.aries.blueprint.sample-annotation-0.3.2 org.apache.aries.blueprint.sample-0.4 org.apache.aries.blueprint.jexl.evaluator-0.1.0 org.apache.aries.blueprint.core-0.4 org.apache.aries.blueprint.cm-0.3.2 org.apache.aries.blueprint.api-0.3.2 org.apache.aries.blueprint.annotation.impl-0.3.2 org.apache.aries.blueprint.annotation.api-0.3.2 org.apache.aries.blueprint-0.4 jpa-0.3 jpa-0.2-incubating jpa-0.1-incubating jndi-0.3 jndi-0.2-incubating jndi-0.1-incubating jmx-0.3 jmx-0.2-incubating jmx-0.1-incubating eba-maven-plugin-0.3 eba-maven-plugin-0.2-incubating eba-maven-plugin-0.1-incubating blueprint-parser-0.4 blueprint-0.3.1 blueprint-0.3 blueprint-0.2.1 blueprint-0.2-incubating blueprint-0.1-incubating application-0.3 application-0.2.2 application-0.2.1 application-0.2-incubating application-0.1-incubating 0.4
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
src
.gitignore
LICENSE
NOTICE
README.md
pom.xml

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