• 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.

Item6632: Username from HTTP-Basic-Auth (REMOTE_USER) is used even though TemplateLogin is used

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


We user the TemplateLogin-method to authenticate users to our twiki. But we also use HTTP-Basic-Auth to restrict access to the whole web-root.

Desired behaviour: When accessing our wiki (or any other page), first one has to enter the Basic-Auth user and password and then gets to the Main-Web. There, the user can (but does not have to) login with his TWiki-account.

Problem: TWiki claims to be logged-in with the basic-auth-username instead of showing the login-button (although there is no TWiki-account with this name). Logout does also not work. So it is impossible to login with an proper TWiki-account.

Workaround: in twiki/lib/TWiki/Engine/CGI.pm I commented out line 80 ("$req->remoteUser( $ENV{REMOTE_USER} );" in function prepareHeaders() ). I did not properly test this but it works for us without drawbacks. This might have side-effects!

-- TWiki:Main/PhilippLowack - 2011-01-11

Summary Username from HTTP-Basic-Auth (REMOTE_USER) is used even though TemplateLogin is used
ReportedBy TWiki:Main.PhilippLowack
Codebase 5.0.0
SVN Range TWiki-5.0.0, Sat, 29 May 2010, build 18859
AppliesTo Engine

Priority Normal
CurrentState New


TargetRelease n/a

Topic revision: r1 - 2011-01-11 - PhilippLowack
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback