[ 
http://issues.apache.org/jira/browse/CACTUS-224?page=comments#action_12320857 ] 

Nicolas Chalumeau commented on CACTUS-224:
------------------------------------------

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.

> add the servletredirector tag to the cactify task
> -------------------------------------------------
>
>          Key: CACTUS-224
>          URL: http://issues.apache.org/jira/browse/CACTUS-224
>      Project: Cactus
>         Type: Improvement
>   Components: Maven Integration
>     Versions: 1.7
>     Reporter: Nicolas Chalumeau
>     Assignee: Nicolas Chalumeau
>  Attachments: patch.diff
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to