Project

General

Profile

Actions

Defect #5322

closed

REST API 401 response doesn't include WWW-Authenticate header

Added by Arkaitz Jimenez about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
2010-04-15
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

HTTP requires WWW-Authenticate header to be returned on 401 code.
Some clients depend on the header to retry with auth.

GET /projects.xml HTTP/1.1
User-Agent: Java/1.6.0_0
Host: MYHOST
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

HTTP/1.1 401 Unauthorized
Content-Type: application/xml; charset=utf-8
X-Runtime: 23
Content-Length: 1
Set-Cookie: _redmine_session=BAh7BjoPc2Vzc2lvbl9pZCIlZmFjZjVlZDJmNWY5ZDUzODM2ZmFhMzZlZTYwZWJkN2M%3D--d84bd8aa688873e8771b965f7ad35389505a52e5; path=/; HttpOnly
Cache-Control: no-cache
Date: Thu, 15 Apr 2010 09:08:42 GMT
Server: lighttpd/1.4.19
Actions #1

Updated by Jean-Philippe Lang about 14 years ago

  • Subject changed from Rest WebService authentication 401 doesn't include WWW-Authentication header to REST API 401 response doesn't include WWW-Authenticate header
  • Category set to REST API
  • Status changed from New to Closed
  • Affected version (unused) set to devel
  • Resolution set to Fixed

Fixed in r3679.

Actions

Also available in: Atom PDF