Details
-
Feature Request
-
Resolution: Done
-
Major
-
7.1.2.Final (EAP)
-
None
Description
Consider the following example:
@Stateless public class SecureBean { @RolesAllowed("role1") public void restrictedRoles() { ... } @DenyAll public void denyEveryone() { ... } }
Notice that the bean methods use EJB security annotations to restrict access however the bean doesn't have any explicit @SecurityDomain configured (not even in jboss-ejb3.xml). Right now, AS7 ignores the security restriction on that bean allows everyone to invoke on it, as if security wasn't configured for that bean. This has confused users who expect the invocations to fail since they have used the javax.ejb.* security annotations to restrict access. Many users have asked for a feature where the security domain is defaulted (if not explicitly specified) in cases like this.
This JIRA is expected to introduce this feature in AS 7.2.x