-
1. Re: request.isUserInRole() always returns false
mp911de Nov 13, 2011 11:45 PM (in response to bemtaill)Hi Valery,
it looks like you are within a web-app...for some reasons i had also the fun with users and roles. For me it worked out when i set up the authentication section within the web.xml. Without the security config it also did not work for me. Try this first, see http://java.dzone.com/articles/understanding-web-security
Best regards,
Mark
-
2. Re: request.isUserInRole() always returns false
bemtaill Nov 14, 2011 10:08 AM (in response to mp911de)Hi Mark,
Thank you for your answer. In fact I should have updated the thread earlier as I found the cause of the problem.
As I have found out from [1]
{quote} Note: Value of RoleGroup column always has to be Roles (with capital 'R'). This is specific to JBoss. {quote}
while in [2] it was not clear that it's a requirement at the beginning.
Valery.
[1] http://community.jboss.org/wiki/DatabaseServerLoginModule
PS: but logs are anyway a bit misleading as I was 100% sure that the role was assigened to the user.