cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Your Name" <coc...@leverageweb.com>
Subject Re: Authorisation problem
Date Tue, 31 Dec 2002 16:01:07 GMT
That information is in the request object, not session - see 
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/environment/Reque
st.html.  There is not (to my knowledge at least) a way to get an 
enumeration of all the roles associated with a user - you can only get 
a boolean back from isUserInRole(java.lang.String role).

See the chart at the bottom of 
http://xml.apache.org/cocoon/userdocs/xsp/request.html for the xsp-
request logicsheet tags related to the api.

Geoff

> Hi there.
> 
> I've configured Tomcat to handle authentication and authorisation on 
my Cocoon pages and everything
> works fine, including accessing user database etc. 
> Now, I would like to read user name and role from XSP. But I don't 
know how to do this. I tried to enumerate
> attributes in xsp-session but it's empty. Is it possible to access 
session login and role outside the Tomcat,
> I mean, in my cocoon app ?
> 
> I'm sorry for not directly Cocoon oriented question and thanks in 
advance for help.
> 
> Sebastian Gil
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 
> 
> 

-- 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message