[opencms-dev] Web Users control accessing pages
Marcus Redeker
mredeker at web.de
Fri Oct 3 12:18:02 CEST 2003
I had problems with WebUsers using the browser popup box for passwords.
I created my own login.jsp which is using the OpenCMS API to login.
There are two methods one for webuser and one for OpenCMS user. I have
no problems now.
--Marcus
-----Original Message-----
From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] On Behalf Of Paolo Brunasti -
Agora
Sent: Friday, October 03, 2003 11:14 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Web Users control accessing pages
I've created some WebUser with this code :
-----------------------------
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);
CmsObject cmso = cms.getCmsObject();
CmsUser createdUser = cmso.addWebUser(.......
-----------------------------
I associated them with a Group "WebUsers".
Then I create an other web user and associated it with the "WebHidden"
group.
I create some pages and directories "pubblic" and others visible only to
"WebHidden" group.
When I try to access the "private" pages logged as a user in the
"WebUsers" group I got the login popup, and it's OK.
When I try to access the "private" pages logged as a user in the
"WebHidden" group I see the pages, and it's OK.
If after that I login as a "WebUsers" user and try to see a "private"
page I can see it a first time, then if I try to reload it I got the
login popup, and THIS IS THE PROBLEM NUMBER 1 !!!!
Why I can see tha page the first time ?
The browser setting is "Check for newer version of stored pages: Every
visit of the page".
The page is almost empty, just a rude html text.
The problem number 2 is : how can I redirect the user to a site specific
login page instead of having the login popup ?
The problem number 3 is : how can I show the user to a site specific
error page when he/she do not give a correct login instead of the HTTP
401 page ?
Thx all,
Paolo Brunasti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031003/b5141179/attachment.htm>
More information about the opencms-dev
mailing list