Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action
Hi Leonard, On Tue, Nov 30, 2010 at 21:34, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote: > Just wanted to say that this was EXTREMELY helpful. Got my authenticator > working today. Sweet. Thanks for the help. > I'm glad to hear that :-) It would be even sweeter if you were to share your code with the community... Is that something you'd be willing to do? Guillaume Lenny > > > -Original Message- > From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf > Of > Thomas Mortagne > Sent: Thursday, November 25, 2010 2:22 AM > To: XWiki Users > Subject: Re: [xwiki-users] Custom Authentication - Error: You are not > allowed > to view this document or perform this action > > > http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s > so/ > seems a bid minimalistic > > You can find working authenticator example on > http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/ and > especially some code you can reuse like > > http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/xwiki-authe > > ntication-puma/src/main/java/com/xwiki/authentication/AbstractAuthServiceImpl > .java > > On Wed, Nov 24, 2010 at 22:42, 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 "ErrorYou 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, > > > > Lenny > > ___ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > > > > -- > Thomas Mortagne > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action
Just wanted to say that this was EXTREMELY helpful. Got my authenticator working today. Sweet. Thanks for the help. Lenny -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Thursday, November 25, 2010 2:22 AM To: XWiki Users Subject: Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s so/ seems a bid minimalistic You can find working authenticator example on http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/ and especially some code you can reuse like http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/xwiki-authe ntication-puma/src/main/java/com/xwiki/authentication/AbstractAuthServiceImpl .java On Wed, Nov 24, 2010 at 22:42, 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, > > Lenny > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action
http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-sso/ seems a bid minimalistic You can find working authenticator example on http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/ and especially some code you can reuse like http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/xwiki-authentication-puma/src/main/java/com/xwiki/authentication/AbstractAuthServiceImpl.java On Wed, Nov 24, 2010 at 22:42, 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-oracle-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, > > Lenny > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action
You should check context.getUser() (print it in the logs). If all the rights are set maybe you did not set it properly (the 'XWiki.' prefix maybe) Ludovic Le 24/11/10 23:04, Scardino, Leonard R Jr ERDC-ITL-MS Contractor a écrit : 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-boun...@xwiki.org [mailto:users-boun...@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 "ErrorYou 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. -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action
Either you see your name at the top right and then your authentication service is working, except that your user actually has not rights. Maybe you forgot to make the calls to create the user page (when it does not exist) and add the user to XWiki.XWikiAllGroup If you don't see your name then your auth service is not working. But I would guest is the first problem otherwise you'd probably get the login screen again Once your OracleSSO works we'd love you to share it on the SVN sandbox http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/ Ludovic Le 24/11/10 22:42, Scardino, Leonard R Jr ERDC-ITL-MS Contractor a écrit : 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-oracle-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 "ErrorYou 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, Lenny ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action
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-boun...@xwiki.org [mailto:users-boun...@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 "ErrorYou 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@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action
On 11/24/2010 11: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-oracle-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 "ErrorYou 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? I think you have to add that user to the XWiki.XWikiAllGroup . Hope this helps, Marius > > The XWiki documentation says that you "can" implement your own right > management service, but it doesn't say that is necessary. Is it? > > Thanks, > > Lenny > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
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-oracle-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 "ErrorYou 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@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action
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-oracle-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 "ErrorYou 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, Lenny ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users