Results 1 to 4 of 4

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

  1. #1
    Join Date
    Oct 2011
    Posts
    5

    Default 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. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    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.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  3. #3
    Join Date
    Oct 2011
    Posts
    5

    Default

    Quote 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!

  4. #4
    Join Date
    Mar 2006
    Posts
    4

    Cool

    Quote Originally Posted by bwwlpnn View Post
    Great stuff! Thanks!
    Hi did you find the solution about this !!!

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

Tags for this Thread

Posting Permissions

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