Announcement Announcement Module
Collapse
No announcement yet.
Spring Security 3.0.5 - How to save url patterns and roles in security.xml into DB? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Security 3.0.5 - How to save url patterns and roles in security.xml into DB?

    Could anybody tell me how to save the url patterns and roles defined in the file security.xml (with Spring Security 3.0.5) into database so that I can configure them dynamically instead of initializing them from a static XML file?

    <http auto-config="true" lowercase-comparisons="false">
    <intercept-url pattern="/images/**" filters="none"/>
    <intercept-url pattern="/styles/**" filters="none"/>
    <intercept-url pattern="/scripts/**" filters="none"/>
    <intercept-url pattern="/app/admin/**" access="ROLE_ADMIN"/>
    <intercept-url pattern="/app/passwordHint*" access="ROLE_ANONYMOUS,ROLE_ADMIN,ROLE_USER"/>
    <intercept-url pattern="/app/signup*" access="ROLE_ANONYMOUS,ROLE_ADMIN,ROLE_USER"/>
    <intercept-url pattern="/app/**" access="ROLE_ADMIN,ROLE_USER"/>
    <form-login login-page="/login" authentication-failure-url="/login?error=true" login-processing-url="/j_security_check"/>
    <remember-me user-service-ref="userDao" key="e37f4b31-0c45-11dd-bd0b-0800200c9a66"/>
    </http>

    The following post could answer my question but it seems to be for Spring Security 2.0.2.
    http://forum.springsource.org/showth...te-in-database

  • #2
    Did you see the FAQ on this?


    PS: I suggest updating to the latest Spring 3.0.6.RELEASE and Spring Security 3.0.7.RELEASE to avoid some vulnerabilities that have since been fixed.

    Comment


    • #3
      Originally posted by rwinch View Post
      Did you see the FAQ on this?


      PS: I suggest updating to the latest Spring 3.0.6.RELEASE and Spring Security 3.0.7.RELEASE to avoid some vulnerabilities that have since been fixed.
      Great stuff! Thanks!

      Comment


      • #4
        Originally posted by bwwlpnn View Post
        Great stuff! Thanks!
        Hi did you find the solution about this !!!

        send me a link ??
        i need it !!!

        Comment

        Working...
        X