-
1. Re: EJB3 security - Skip authorization for @PermiAll?
anil.saldhana Mar 12, 2010 12:40 PM (in response to jaikiran)That behaves as an "unchecked" operation. Now either we can centralize all security operations in the security layer (including the @PA check) or we can add code to the integration layer (here the ejb3 interceptor) to not invoke the security layer, for performance benefit.
For this particular case, it makes sense to do the latter.
-
2. Re: EJB3 security - Skip authorization for @PermiAll?
anil.saldhana Mar 12, 2010 12:42 PM (in response to anil.saldhana)Also I think I will have to eventually fix the security helper classes to take in method arguments that are small in number and not a mile long. -
3. Re: EJB3 security - Skip authorization for @PermiAll?
dlofthouse Mar 12, 2010 12:51 PM (in response to anil.saldhana)Is this only the authorization this is looking to skip or the authentication as well?
-
4. Re: EJB3 security - Skip authorization for @PermiAll?
jaikiran Mar 12, 2010 12:59 PM (in response to anil.saldhana)anil.saldhana@jboss.com wrote:
That behaves as an "unchecked" operation. Now either we can centralize all security operations in the security layer (including the @PA check) or we can add code to the integration layer (here the ejb3 interceptor) to not invoke the security layer, for performance benefit.
For this particular case, it makes sense to do the latter.
While discussing this with Carlo, he brought up an interesting point related to auditing - Does skipping this authorization from the integration points (like this EJB3 code) result in any side-effects to any security auditing that might be happening through the security APIs? If yes, then maybe centralizing this kind of optimization within the security layer would be a better option.
-
5. Re: EJB3 security - Skip authorization for @PermiAll?
jaikiran Mar 12, 2010 1:01 PM (in response to dlofthouse)darran.lofthouse@jboss.com wrote:
Is this only the authorization this is looking to skip or the authentication as well?
This specific RoleBasedAuthorizationInterceptorv2 will just skip authorization. Authentication will (and rightly should) continue happening for a bean marked with @PermitAll.