• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.
In 4.1.2 I could authenticate through the REST script by passing the username and password parameters. When I try to do this in MAIN I get a 500 Internal Server Error. I tracked down two problems, but each revealed another and I started to get in over my head.

The first error: Can't call method "checkPassword" on an undefined value at /var/www/html/twiki/MAIN/bin/rest line 82. I fixed it by adding the following lines to Users.pm:

    require TWiki::Users::Password;
    $this->{passwords} = new TWiki::Users::Password( $this );

The second error is Can't locate object method "findUser" via package "TWiki::Users" at /var/www/html/twiki/MAIN/bin/rest line 87. This was easilly fixed by changing the function call to findUserByWikiName

The third problem is not a server error, but TWiki does not know what user I am logged in as. When my plugin outputs getWikiUserName() I get the following: Main.UnknownUser (ARRAY(0xa432274)). !UnknownUser is getting set by getWikiName in Users.pm, but I don't know why $cUID is an array. Could one of the functions be passing too many parameters?

-- TWiki:Main/JasonHill - 20 Jul 2007

Ping Sven - any update on this?

CC

I recon i've fixed this now smile

-- SvenDowideit - 04 Sep 2007

ItemTemplate
Summary Authenticating through REST does not work in MAIN
ReportedBy TWiki:Main.JasonHill
Codebase ~twiki4
SVN Range TWiki-4.1.2, Thu, 19 Jul 2007, build 14443
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:14718
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback