Results 1 to 2 of 2

Thread: Security Mapping Roles with Resources from a database

  1. #1
    Join Date
    Oct 2005
    Location
    NE,USA
    Posts
    21

    Smile 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

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    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.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •