cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Kreipke" <>
Subject RE: [Q] SunRise roles?
Date Tue, 13 Aug 2002 14:48:11 GMT
> > I can't figure out how or where the SunRise <role> part of
> > authentication is
> > used.
> >
> It is used in the (sunSpot) portal framework for generating
> the profile of a user. But apart from that it's not use.


> > Can it be used in the AuthAction to limit access by roles?
> >
> You can write your own component for this, but afaik there
> is currently none already available.
> > Is there an example of using them someplace?
> >
> Besides the (big) portal code: I think, no.
> > When are all the users with a given role queried?
> >
> For a running system: never. Only the user management web
> application where you can add a new user, add roles etc.
> fetches all users for a given role to make them editable.


Follow up questions:

- is there an equivalent call to HTTPServletRequest.isUserInRole() against
the authentication context?

- From what I can tell, the SunRise code doesn't support the notion of
multiple roles per user. It makes the SunRise Authentication support not a
complete replacement for container security.  Perhaps that wasn't the goal
but it's something people will look for.

What's the background for that? Do you think it could be overcome easily

Aside: if I return a list of comma separated roles could the portal still be
made to work?

- I'm not clear why the SessionContextImpl doesn't implement some of the
functions like getNodeList(String path).

Thoughts for doing multiple roles:

+ comma separated list of roles inside <role> (yes, sounds flaky doesn't

+ add to the <data> section


But then I immediately ran into trouble trying to iterate over all the
nested <role>s inside <roles> since SessionContextImpl doesn't implement
some of the xpath functions.

Aside: what contexts (besides 'sunRise') is the SessionContextImpl used
instead of SimpleSessionContext?


Please check that your question  has not already been answered in the
FAQ before posting.     <>

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

View raw message