You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by "Felipe Leme (JIRA)" <ca...@jakarta.apache.org> on 2006/01/07 02:38:18 UTC

[jira] Updated: (CACTUS-224) add the servletredirector tag to the cactify task

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

Felipe Leme updated CACTUS-224:
-------------------------------

    Assign To:     (was: Nicolas Chalumeau)

> 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
>  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: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org