Project

General

Profile

Actions

Defect #8590

closed

Base Auth is not working with mod_fcgid for REST API

Added by Bruno Medeiros over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-06-10
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

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

Is duplicate of Redmine - Defect #8589: REST API does not accept Basic HTTP auth when running through Apache mod_proxyNew2011-06-10

Actions
Actions

Also available in: Atom PDF