That's what I was thinking as well, though I don't get logged out, but I
can't see my users profile. I removed the config line and logged in as the
administrator with the default login. The user I created seemed to have the
correct permissions. Also when not using my custom authenticator, I was able
to login as this new user and everything was fine. But the minute I change
the config back to my authenticator I get the "Error You are not allowed to
view..." error.
It does sound like a permissions thing, but I virtually have a fresh install
of XWiki, so I haven't changed any of the permissions or groups or anything.
So I would have thought the XWiki.createEmptyUser method would set my user up
as it needed to be. Or I would have expected something in the documentation
to tell me to do something myself.
Any other ideas after knowing the above?
Lenny
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of
Sergiu Dumitriu
Sent: Wednesday, November 24, 2010 3:54 PM
To: XWiki Users
Subject: Re: [xwiki-users] Custom Authentication - Error: You are not allowed
to view this document or perform this action
On 11/24/2010 10:42 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
I've been searching the archive, but coming up
short here.
I'm trying to get custom authentication going on XWiki Enterprise 2.6.
I've successfully implemented the XWikiAuthService by extending
XwikiAuthServiceImpl as suggested here :
http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-o
racle-s
so/
I have also added the xwiki.authentication.authclass line to my xwiki.cfg.
I'm able to automatically create a new user in xwiki using the
XWiki.createEmptyUser method, and I get logged in.
However, when I get in as that user all I get is "Error You are not
allowed to view this document or perform this action." No matter what
I try to look at, including the personal profile.
Can anyone tell me what I'm missing here?
The XWiki documentation says that you "can" implement your own right
management service, but it doesn't say that is necessary. Is it?
Thanks,
If you can log in with this user, and you can click on your profile name
displayed in the top-right menu, and you're not logged out immediately after
that, then it's not a user authentication problem, but a rights issue. Make
sure the user is in the requested groups, and he does have the rights to
view/edit documents.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users