Uploaded image for project: 'Spring Security'
  1. Spring Security
  2. SEC-2059

Support Path Variables in Intercept-Url Pattern

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 4.2.0 M1
    • Component/s: Web
    • Labels:
      None

      Description

      When using the default Ant path matcher, it would be great if path variables can be used in intercept-url patterns and referenced in security expressions like so:

       
      <http use-expressions="true" >
          <intercept-url pattern="/users/{name}" access="authentication.name=#name" />
          ...
      </http>
       

        Activity

        Show
        rwinch Rob Winch added a comment - Workaround can be found here https://github.com/rwinch/spring-security-sample/tree/intercept-url-path-variable
        Hide
        rwinch Rob Winch added a comment -

        This has been added to Spring Security 4.1 M1. The docs will deploy after the build completes (next 30 min) and be available at http://docs.spring.io/spring-security/site/docs/current-SNAPSHOT/reference/htmlsingle/#el-access-web-path-variables

        Show
        rwinch Rob Winch added a comment - This has been added to Spring Security 4.1 M1. The docs will deploy after the build completes (next 30 min) and be available at http://docs.spring.io/spring-security/site/docs/current-SNAPSHOT/reference/htmlsingle/#el-access-web-path-variables

          People

          • Assignee:
            rwinch Rob Winch
            Reporter:
            achang Andy Chang
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: