Jun 30 2008

Acegi RoleVoter

Published by at 6:58 pm under IT,Java

Adding new role to Acegi secured application may be painful sometime.

Tip of the day: by default RoleVoter is only accepting roles with names starting with prefix ROLE_ (take a look on javadoc here). You easily can change this prefix while defining RoleVoter bean (this is usually configured in file WEB-INF/security.xml)

<bean class="org.acegisecurity.vote.RoleVoter">
    <property name="rolePrefix">

That’s all for today about Acegi 😉

No responses yet

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.