Hi ... I'm using Code:
lt;bean id=quot;filterSecurityInterceptorquot; class=quot;org.acegisecurity.intercept.web.FilterSecurityInterceptorquot;gt;
lt;property name=quot;authenticationManagerquot; ref=quot;authenticationManagerquot; /gt;
lt;property name=quot;accessDecisionManagerquot; ref=quot;accessDecisionManagerquot; /gt;
lt;property name=quot;objectDefinitionSourcequot;gt;
lt;valuegt;
CONVERT_ucl_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/buscarcarteles.do=ROLE_A
/buscarfotos.do=ROLE_A,ROLE_B
lt;/valuegt;
lt;/propertygt;
lt;/beangt;
Config only detects ROLE_A for /buscarfotos.do
when I try /buscarFotos.do with an user with ROLE_B i get acces denied.
I debugged the RoleVoter and I saw that only ROLE_A gets on the config attributes.
Can you please show the code where you are assigning the Authorities to the user means where you are creating the Granted Authorities.
Thanks
Gaurav
Hi,
I just started from scratch. Now I use spring security instead of acegi.
But thanks anyway. |