0 Replies Latest reply on Mar 22, 2007 6:00 AM by Frank Cornelis

    Why AbstractServerLoginModule.logout is not removing added r

    Frank Cornelis Apprentice


      I just came across a situation in which the sessionContext.getCallerPrincipal() returns null because the principal was removed from the subject during logout, which is OK. The funny thing is that, because AbstractServerLoginModule is not removing any added roles, the RBAC still lets the 'null' caller principal call the method annotated with @RolesAllowed. Why is AbstractServerLoginModule not removing the added roles while removing the principal from the subject?