Cactus
  1. Cactus
  2. CACTUS-224

add the servletredirector tag to the cactify task

    Details

    • Type: Improvement Improvement
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Maven Integration
    • Labels:
      None

      Description

      To allow authentification the servletredirector tag need to be add to the cactify task ie :

      <cactifywar version="2.3" destfile="$

      {cactus.war}

      ">
      ...
      <servletredirector name="ServletRedirectorSecure"
      mapping="/ServletRedirectorSecure"
      roles="RoleBase"/>

      The roles can be a plugin property...

      This make the howto_security sample works for me without adding anything to the web.xml except the contraint/role definition :

      <security-constraint>
      <web-resource-collection>
      <web-resource-name>SecurityRestriction</web-resource-name>
      <url-pattern>/*</url-pattern>
      </web-resource-collection>
      <auth-constraint>
      <role-name>RoleBase</role-name>
      </auth-constraint>
      </security-constraint>

      <login-config>
      <auth-method>FORM</auth-method>
      <realm-name>Zone protégée</realm-name>
      <form-login-config>
      <form-login-page>/logon.html</form-login-page>
      <form-error-page>/logonerror.html</form-error-page>
      </form-login-config>

      </login-config>

      <security-role>
      ...
      </security-role>

      1. patch.diff
        2 kB
        Nicolas Chalumeau

        Activity

        Hide
        Nicolas Chalumeau added a comment -

        modif todo for this.

        Show
        Nicolas Chalumeau added a comment - modif todo for this.
        Hide
        Nicolas Chalumeau added a comment -

        I just want to say that no change need to be done in the web.xml except the definition of the login-config the security-constraint will be add by the tag.

        Show
        Nicolas Chalumeau added a comment - I just want to say that no change need to be done in the web.xml except the definition of the login-config the security-constraint will be add by the tag.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nicolas Chalumeau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development