cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <>
Subject Re: Authenticating pipelines called from a cron job
Date Wed, 09 May 2007 10:12:49 GMT
Hi Sanket,

do I understand you correct. You want your cronjob to execute an 
external pipeline on the same cocoon instance the cron job is runing and 
want to prevent external users from accessing the same pipeline 
manually? Why not use an internal pipeline instead? You could create an 
internal pipeline and har code authentication in this pipeline

            <map:pipeline internal-only="true">
                 <map:match pattern="some-cron-pipeline">
                    <map:act type="auth-login">
                       <map:parameter name="handler" value="authhandler"/>
                       <map:parameter name="parameter_username" 
                       <map:parameter name="parameter_password" 
                       <map:parameter name="session-timeout" value="540"/>
                       <map:act type="auth-protect">
                           <map:parameter name="handler" 

Havent tested this thogh CronJobs don't need authentication since 
they are internal pipelines and I allways know who I am ;)


Sanket Pattekar schrieb:
> Hi,
> I am using a cron job that fires daily, which call the pipeline as 
> follows
> <component 
> class="org.apache.cocoon.components.cron.CocoonPipelineCronJob"
> logger="core" 
> role="org.apache.cocoon.components.cron.CronJob/pipeline-daily">
>     <pipeline>some-external-pipeline</pipeline>
>    </component>
> The above cron job uses an extaernal pipeline, it can also be accessed
> by the external user. I want to prevent the same, and some
> authentication, so that this pipeline is only executed when called
> from a cron job and not explicitly.
> Is there any I can check the same.
> Sanket
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message