-
Feature Request
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
-
None
I'm using the DatabaseServerLoginModule to map principal and roles (client uses ClientLoginModule)
I have a one SLSB with the following security definitions:
@SecurityDomain("testApp-server")
public class....... {
@RolesAllowed("admin")
public int add(int a, int b)
}
Everything works fine - but I want to move the security domain's declaration to the DD:
I removed the '@SecurityDomain' annotation and added a
<security-domain>java:/jaas/testApp-server</security-domain> element to my jboss-app.xml file.
It doesn't work - everyone can access my "secured" method.
Additional tests I did:
A. I know that the jboss-app.xml is being loaded since I added a service module (SAR) into it - and it is being loaded
B. I tried to replace the name of the security domain with an none-exist security domain and again
nothing happends (not even an error message)
C. I tried both static login configuration (server/conf/login-config.xml) and a dynamic one (using the
DynamicLoginConfig) - yet, nothing happends
- duplicates
-
EJBTHREE-703 <security-domain> setting in deployment descriptor populates @SecurityDomain annotation incorrectly on EJB3 session beans
- Open
- relates to
-
EJBTHREE-281 Allow a default <security-domain> element in jboss.xml
- Closed