cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senhaji" <osenh...@wanadoo.fr>
Subject RE: Authentication Resource
Date Tue, 05 Nov 2002 15:13:43 GMT
the sitemap looks like this :

***********
* The auth-login action
***********
<map:match pattern="loginProcess">
            <!-- try to login -->
  	     	<map:act type="auth-login">
	        <map:parameter name="handler" value="authHandler"/>
		  <map:parameter name="parameter_name" 	 value="{request:username}"/>
		  <map:parameter name="parameter_pass" 	 value="{request:password}"/>

  		  <map:redirect-to uri="myProtectedPage"/>=

	        </map:act>
            <!-- try it again -->
            <map:redirect-to uri="login"/>
</map:match>

***************
Protected page
***************
<map:match pattern="myProtectedPage">
 	<map:act type="auth-protect">
		<map:parameter name="handler" value="authHandler"/>
	      <map:generate src="docs/protected.xml"/>
      	<map:transform src="stylesheets/simple-page2html.xsl"/>
	      <map:serialize/>

       </map:act>
       <!-- something was wrong, redirect to login page -->
       <map:redirect-to uri="login"/>
      </map:match>

*************
* The authenticate resource
*************
<map:pipeline internal-only="true">
    <!-- This is the authentication respource -->
	<map:match pattern="authenticate">
        <map:generate src="resources/authentication.xsp"
type="serverpages"/>
        <map:transform src="stylesheets/authenticate.xsl"/>
	  <map:serialize type="xml"/>
	</map:match>
</map:pipeline>

Thanks for your help


-----Message d'origine-----
De : Markdelanoy@aol.com [mailto:Markdelanoy@aol.com]
Envoyé : mardi 5 novembre 2002 15:50
À : cocoon-users@xml.apache.org
Objet : Re: Authentication Resource


You've got the XSP but what does the sitemap look like??

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message