Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

SEC-1277: The authorization tag libraries are totally wrong! #1504

spring-issuemaster opened this Issue Oct 26, 2009 · 2 comments


None yet
1 participant

vincent lee (Migrated from SEC-1277) said:

<security:authorize ifAllGranted="ROLE_SUPERVISOR">

">Del /security:authorize

I think it is more reasonable to protect a resource like this:
<security:authorize ifAllAuthorised="del.htm">

">Del /security:authorize

Because the relationship between resources and roles may change in the future,
even more,the role name may change.

Luke Taylor said:

Totally wrong, eh?

First off, if you want to treat the attributes used in the security metadata as logical roles/permisssions, then there is nothing to stop you doing so. You can just implement an appropriate mapping in your AuthenticationProvider or UserDetailsService. This is a common requirement.

Secondly, please check the changelog before creating new issues. The functionality you are talking about was implemented in RC1 for SEC-525.

@spring-issuemaster spring-issuemaster added this to the 3.0.0.RC2 milestone Feb 5, 2016

This issue duplicates #787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment