Defect #8590

Base Auth is not working with mod_fcgid for REST API

Added by Bruno Medeiros about 11 years ago. Updated about 11 years ago.

Status:ClosedStart date:2011-06-10
Priority:HighDue date:
Assignee:-% Done:


Target version:-
Resolution:Duplicate Affected version:1.1.3


I tried to use Redmine's REST API with base auth through Apache's mod_fcgid and could not make it work. It happens because apache don't sent auth information to fcgi scripts by default, but the .htaccess should handle that with a rewrite rule, as follows:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L]

It was fixed on this post

Related issues

Duplicates Redmine - Defect #8589: REST API does not accept Basic HTTP auth when running thr... New 2011-06-10


#1 Updated by Alex Last about 11 years ago

hey, I beat you by 2 minutes :) see bug #8589

#2 Updated by Etienne Massip about 11 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Alexey won.

Also available in: Atom PDF