cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gautam Ganguly" <>
Subject Re: How to access the security handler/authentication context infofrom sub-sitemap?
Date Sun, 18 Apr 2004 18:48:24 GMT
hi Leon,
  I tried that,but that creates a totally new security handler,which
takes me through the whole login process again.The docs talk about
accessing the parent sitemaps handler in the sub-sitemap,but i haven't
seen any examples yet,as to how to do that.Anything else...?
  But still, i thank you  for your suggestion and your time.

>>> 04/18/04 01:30PM >>>
I think you need to define the authentication manager in the


Gautam Ganguly wrote:

>hi all,
>  I am using cocoon-2.1.2.
>  This is how the main-sitemap looks like:
><map:sitemap .....
>  <map:component-configurations>
>  <authentication-manager>
>    <handlers>
>      <handler name="Securityhandler">
>	<redirect-to uri="cocoon:/login.html"/>
>	<authentication uri="cocoon:raw:/db-auth-func"/>
>      </handler>
>   </handlers>
>  </authentication-manager>
>  </map:component-configurations>
>The auth-protect does everything as the doc says.
>But in the sub-sitemap,which handles the child-webapp..i have the
>to access the authentication context info of the current logged in
>user.On putting the auth-protect action in the sub-sitemap,the
>keeps saying "Unknown handler to check:Securityhandler"
>This is how the sub-sitemap looks like:
>   <map:pipeline>
>       <map:match pattern="*.html">
>             <map:act type="auth-protect">
>	<map:parameter name="handler" value="Securityhandler"/> 
>            <map:match pattern="index.html">
>	      <map:call resource="show-page">
>	         <map:parameter name="filename" value="index"/>
> 	         <map:parameter name="full-filename" value="index"/>
>    	       </map:call>
>              </map:act>
>              <!-- something was wrong, redirect to login page -->
>	<map:redirect-to uri="context://Mainapp/login.html"/>
>            </map:match>
>     </map:match>
>If someone could help me,as to how this can be done..i would highly
>appreciate that.
>with regards,
>To unsubscribe, e-mail: 
>For additional commands, e-mail: 

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

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

View raw message