-
Nov 8th, 2005, 07:35 AM
#1
Security Mapping Roles with Resources from a database
Hi All ,
currently i am mapping resources and roles like this
<bean id="filterInvocationInterceptor" class="net.sf.acegisecurity.intercept.web.FilterSe curityInterceptor">
<property name="authenticationManager">
<ref bean="authenticationManager"/>
</property>
<property name="accessDecisionManager">
<ref local="httpRequestAccessDecisionManager"/>
</property>
<property name="objectDefinitionSource">
<value>
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/hello.*=ROLE_SUPERVISOR,ROLE_TELLER,ROLE_ANONYMOUS
</value>
</property>
</bean>
Is it possible to map the roles and the resources in a database ,so that the resources allocated to the roles can be changed at will without hardcoding ??
thanx
sathya
-
Nov 11th, 2005, 05:28 AM
#2
To define these in a database you will need to write your own implementation of the FilterInvocationDefinitionSource and define a reference to your implementation from the FilterSecurityInterceptor.objectDefinitionSource property.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules