You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fe...@thomson.com on 2006/03/22 13:41:26 UTC

roles in sitemap?

There's no built-in support to act based on authentication roles in the
sitemap?

 


Re: roles in sitemap?

Posted by Ralph Goers <Ra...@dslextreme.com>.
Fernando.Matomira@thomson.com wrote:

> There’s no built-in support to act based on authentication roles in 
> the sitemap?
>
No, but it is very easy to add. First, you have to get the user's roles 
during authentication from whatever authentication and authorization 
component you are using and save them in the user's session. Then write 
a Permission selector that looks a lot like the ExceptionSelector. It 
just compares the user's roles with the role specified in the sitemap 
and executes the correct pipeline fragment.

Ralph

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