cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <Ralph.Go...@dslextreme.com>
Subject Re: roles in sitemap?
Date Wed, 22 Mar 2006 16:26:23 GMT
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


Mime
View raw message