-
1. Re: Seam Security Interceptors
lightguard May 9, 2011 3:15 PM (in response to mo.moritz.grauel.akquinet.de)Add the interceptor in the beans.xml and let us know the result. Interceptors are not enabled by default and must be listed in the beans.xml (I would put the security interceptor first so it's the first interceptor to be invoked).
-
2. Re: Seam Security Interceptors
mo.moritz.grauel.akquinet.de May 10, 2011 3:37 AM (in response to mo.moritz.grauel.akquinet.de)Adding
<interceptors> <class>org.jboss.seam.security.extension.SecurityInterceptor</class> </interceptors>
to my beans.xml works. The interceptor get's called and the the security of the annotated methods gets validated.
Does the documentation of seam-security mentions somewhere that one has to enable the SecurityInterceptor manually?
If I specify
<interceptors> <class>org.jboss.seam.security.extension.SecurityInterceptor</class> <class>org.jboss.seam.transaction.TransactionInterceptor</class> </interceptors>
in my beans.xml the applications fails to deploy.
WELD-001416 Enabled interceptor class [..snip..]TransactionInterceptor[..snip..] specified twice
-
3. Re: Seam Security Interceptors
baraber May 10, 2011 9:47 AM (in response to mo.moritz.grauel.akquinet.de)This is because the transaction interceptor is already configured in seam-security-impl jar (see /META-INF/beans.xml of the seam-security-impl jar) ...
-
4. Re: Seam Security Interceptors
lightguard May 10, 2011 3:46 PM (in response to mo.moritz.grauel.akquinet.de)It doesn't look like it is in the docs, please add a JIRA (or even a pull request :) )