source: draft-ietf-httpbis/00/p7-auth.html @ 1099

Last change on this file since 1099 was 1099, checked in by julian.reschke@…, 9 years ago

bump up document dates, update to latest version of rfc2629.xslt

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/html;charset=utf-8
File size: 43.9 KB
Line 
1<!DOCTYPE html
2  PUBLIC "-//W3C//DTD HTML 4.01//EN">
3<html lang="en">
4   <head profile="http://www.w3.org/2006/03/hcard http://dublincore.org/documents/2008/08/04/dc-html/">
5      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6      <title>HTTP/1.1, part 7: Authentication</title><style type="text/css" title="Xml2Rfc (sans serif)">
7a {
8  text-decoration: none;
9}
10a.smpl {
11  color: black;
12}
13a:hover {
14  text-decoration: underline;
15}
16a:active {
17  text-decoration: underline;
18}
19address {
20  margin-top: 1em;
21  margin-left: 2em;
22  font-style: normal;
23}
24body {
25  color: black;
26  font-family: verdana, helvetica, arial, sans-serif;
27  font-size: 10pt;
28}
29cite {
30  font-style: normal;
31}
32dd {
33  margin-right: 2em;
34}
35dl {
36  margin-left: 2em;
37}
38
39ul.empty {
40  list-style-type: none;
41}
42ul.empty li {
43  margin-top: .5em;
44}
45dl p {
46  margin-left: 0em;
47}
48dt {
49  margin-top: .5em;
50}
51h1 {
52  font-size: 14pt;
53  line-height: 21pt;
54  page-break-after: avoid;
55}
56h1.np {
57  page-break-before: always;
58}
59h1 a {
60  color: #333333;
61}
62h2 {
63  font-size: 12pt;
64  line-height: 15pt;
65  page-break-after: avoid;
66}
67h3, h4, h5, h6 {
68  font-size: 10pt;
69  page-break-after: avoid;
70}
71h2 a, h3 a, h4 a, h5 a, h6 a {
72  color: black;
73}
74img {
75  margin-left: 3em;
76}
77li {
78  margin-left: 2em;
79  margin-right: 2em;
80}
81ol {
82  margin-left: 2em;
83  margin-right: 2em;
84}
85ol p {
86  margin-left: 0em;
87}
88p {
89  margin-left: 2em;
90  margin-right: 2em;
91}
92pre {
93  margin-left: 3em;
94  background-color: lightyellow;
95  padding: .25em;
96}
97pre.text2 {
98  border-style: dotted;
99  border-width: 1px;
100  background-color: #f0f0f0;
101  width: 69em;
102}
103pre.inline {
104  background-color: white;
105  padding: 0em;
106}
107pre.text {
108  border-style: dotted;
109  border-width: 1px;
110  background-color: #f8f8f8;
111  width: 69em;
112}
113pre.drawing {
114  border-style: solid;
115  border-width: 1px;
116  background-color: #f8f8f8;
117  padding: 2em;
118}
119table {
120  margin-left: 2em;
121}
122table.header {
123  border-spacing: 1px;
124  width: 95%;
125  font-size: 10pt;
126  color: white;
127}
128td.top {
129  vertical-align: top;
130}
131td.topnowrap {
132  vertical-align: top;
133  white-space: nowrap; 
134}
135table.header td {
136  background-color: gray;
137  width: 50%;
138}
139table.header a {
140  color: white;
141}
142td.reference {
143  vertical-align: top;
144  white-space: nowrap;
145  padding-right: 1em;
146}
147thead {
148  display:table-header-group;
149}
150ul.toc, ul.toc ul {
151  list-style: none;
152  margin-left: 1.5em;
153  margin-right: 0em;
154  padding-left: 0em;
155}
156ul.toc li {
157  line-height: 150%;
158  font-weight: bold;
159  font-size: 10pt;
160  margin-left: 0em;
161  margin-right: 0em;
162}
163ul.toc li li {
164  line-height: normal;
165  font-weight: normal;
166  font-size: 9pt;
167  margin-left: 0em;
168  margin-right: 0em;
169}
170li.excluded {
171  font-size: 0pt;
172}
173ul p {
174  margin-left: 0em;
175}
176ul.ind, ul.ind ul {
177  list-style: none;
178  margin-left: 1.5em;
179  margin-right: 0em;
180  padding-left: 0em;
181  page-break-before: avoid;
182}
183ul.ind li {
184  font-weight: bold;
185  line-height: 200%;
186  margin-left: 0em;
187  margin-right: 0em;
188}
189ul.ind li li {
190  font-weight: normal;
191  line-height: 150%;
192  margin-left: 0em;
193  margin-right: 0em;
194}
195.avoidbreak {
196  page-break-inside: avoid;
197}
198.bcp14 {
199  font-style: normal;
200  text-transform: lowercase;
201  font-variant: small-caps;
202}
203.comment {
204  background-color: yellow;
205}
206.center {
207  text-align: center;
208}
209.error {
210  color: red;
211  font-style: italic;
212  font-weight: bold;
213}
214.figure {
215  font-weight: bold;
216  text-align: center;
217  font-size: 9pt;
218}
219.filename {
220  color: #333333;
221  font-weight: bold;
222  font-size: 12pt;
223  line-height: 21pt;
224  text-align: center;
225}
226.fn {
227  font-weight: bold;
228}
229.hidden {
230  display: none;
231}
232.left {
233  text-align: left;
234}
235.right {
236  text-align: right;
237}
238.title {
239  color: #990000;
240  font-size: 18pt;
241  line-height: 18pt;
242  font-weight: bold;
243  text-align: center;
244  margin-top: 36pt;
245}
246.vcardline {
247  display: block;
248}
249.warning {
250  font-size: 14pt;
251  background-color: yellow;
252}
253
254
255@media print {
256  .noprint {
257    display: none;
258  }
259 
260  a {
261    color: black;
262    text-decoration: none;
263  }
264
265  table.header {
266    width: 90%;
267  }
268
269  td.header {
270    width: 50%;
271    color: black;
272    background-color: white;
273    vertical-align: top;
274    font-size: 12pt;
275  }
276
277  ul.toc a::after {
278    content: leader('.') target-counter(attr(href), page);
279  }
280 
281  ul.ind li li a {
282    content: target-counter(attr(href), page);
283  }
284 
285  .print2col {
286    column-count: 2;
287    -moz-column-count: 2;
288    column-fill: auto;
289  }
290}
291
292@page {
293  @top-left {
294       content: "Internet-Draft"; 
295  } 
296  @top-right {
297       content: "December 2007"; 
298  } 
299  @top-center {
300       content: "HTTP/1.1"; 
301  } 
302  @bottom-left {
303       content: "Fielding, et al."; 
304  } 
305  @bottom-center {
306       content: "Standards Track"; 
307  } 
308  @bottom-right {
309       content: "[Page " counter(page) "]"; 
310  } 
311}
312
313@page:first { 
314    @top-left {
315      content: normal;
316    }
317    @top-right {
318      content: normal;
319    }
320    @top-center {
321      content: normal;
322    }
323}
324</style><link rel="Contents" href="#rfc.toc">
325      <link rel="Author" href="#rfc.authors">
326      <link rel="Copyright" href="#rfc.copyright">
327      <link rel="Index" href="#rfc.index">
328      <link rel="Chapter" title="1 Introduction" href="#rfc.section.1">
329      <link rel="Chapter" title="2 Status Code Definitions" href="#rfc.section.2">
330      <link rel="Chapter" title="3 Header Field Definitions" href="#rfc.section.3">
331      <link rel="Chapter" title="4 IANA Considerations" href="#rfc.section.4">
332      <link rel="Chapter" title="5 Security Considerations" href="#rfc.section.5">
333      <link rel="Chapter" title="6 Acknowledgments" href="#rfc.section.6">
334      <link rel="Chapter" href="#rfc.section.7" title="7 References">
335      <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.537, 2010-12-30 14:21:59, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/">
336      <link rel="schema.dct" href="http://purl.org/dc/terms/">
337      <meta name="dct.creator" content="Fielding, R.">
338      <meta name="dct.creator" content="Gettys, J.">
339      <meta name="dct.creator" content="Mogul, J.">
340      <meta name="dct.creator" content="Frystyk, H.">
341      <meta name="dct.creator" content="Masinter, L.">
342      <meta name="dct.creator" content="Leach, P.">
343      <meta name="dct.creator" content="Berners-Lee, T.">
344      <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p7-auth-00">
345      <meta name="dct.issued" scheme="ISO8601" content="2007-12-20">
346      <meta name="dct.replaces" content="urn:ietf:rfc:2068">
347      <meta name="dct.replaces" content="urn:ietf:rfc:2616">
348      <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 7 of the seven-part specification that defines the protocol referred to as &#34;HTTP/1.1&#34; and, taken together, obsoletes RFC 2616. Part 7 defines HTTP Authentication.">
349      <meta name="description" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 7 of the seven-part specification that defines the protocol referred to as &#34;HTTP/1.1&#34; and, taken together, obsoletes RFC 2616. Part 7 defines HTTP Authentication.">
350   </head>
351   <body>
352      <table class="header">
353         <tbody>
354            <tr>
355               <td class="left">Network Working Group</td>
356               <td class="right">R. Fielding, Editor</td>
357            </tr>
358            <tr>
359               <td class="left">Internet-Draft</td>
360               <td class="right">Day Software</td>
361            </tr>
362            <tr>
363               <td class="left">Obsoletes: <a href="http://tools.ietf.org/html/rfc2068">2068</a>, <a href="http://tools.ietf.org/html/rfc2616">2616</a> (if approved)
364               </td>
365               <td class="right">J. Gettys</td>
366            </tr>
367            <tr>
368               <td class="left">Updates: <a href="http://tools.ietf.org/html/rfc2617">2617</a> (if approved)
369               </td>
370               <td class="right">One Laptop per Child</td>
371            </tr>
372            <tr>
373               <td class="left">Intended status: Standards Track</td>
374               <td class="right">J. Mogul</td>
375            </tr>
376            <tr>
377               <td class="left">Expires: June 22, 2008</td>
378               <td class="right">HP</td>
379            </tr>
380            <tr>
381               <td class="left"></td>
382               <td class="right">H. Frystyk</td>
383            </tr>
384            <tr>
385               <td class="left"></td>
386               <td class="right">Microsoft</td>
387            </tr>
388            <tr>
389               <td class="left"></td>
390               <td class="right">L. Masinter</td>
391            </tr>
392            <tr>
393               <td class="left"></td>
394               <td class="right">Adobe Systems</td>
395            </tr>
396            <tr>
397               <td class="left"></td>
398               <td class="right">P. Leach</td>
399            </tr>
400            <tr>
401               <td class="left"></td>
402               <td class="right">Microsoft</td>
403            </tr>
404            <tr>
405               <td class="left"></td>
406               <td class="right">T. Berners-Lee</td>
407            </tr>
408            <tr>
409               <td class="left"></td>
410               <td class="right">W3C/MIT</td>
411            </tr>
412            <tr>
413               <td class="left"></td>
414               <td class="right">December 20, 2007</td>
415            </tr>
416         </tbody>
417      </table>
418      <p class="title">HTTP/1.1, part 7: Authentication<br><span class="filename">draft-ietf-httpbis-p7-auth-00</span></p>
419      <h1><a id="rfc.status" href="#rfc.status">Status of this Memo</a></h1>
420      <p>By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she
421         is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section
422         6 of BCP 79.
423      </p>
424      <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note
425         that other groups may also distribute working documents as Internet-Drafts.
426      </p>
427      <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other
428         documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work
429         in progress”.
430      </p>
431      <p>The list of current Internet-Drafts can be accessed at <a href="http://www.ietf.org/ietf/1id-abstracts.txt">http://www.ietf.org/ietf/1id-abstracts.txt</a>.
432      </p>
433      <p>The list of Internet-Draft Shadow Directories can be accessed at <a href="http://www.ietf.org/shadow.html">http://www.ietf.org/shadow.html</a>.
434      </p>
435      <p>This Internet-Draft will expire on June 22, 2008.</p>
436      <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1> 
437      <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information
438         systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 7 of the
439         seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part
440         7 defines HTTP Authentication.
441      </p> 
442      <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1> 
443      <p>This version of the HTTP specification contains only minimal editorial changes from <a href="#RFC2616" id="rfc.xref.RFC2616.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a> (abstract, introductory paragraph, and authors' addresses). All other changes are due to partitioning the original into seven
444         mostly independent parts. The intent is for readers of future drafts to able to use draft 00 as the basis for comparison when
445         the WG makes later changes to the specification text. This draft will shortly be followed by draft 01 (containing the first
446         round of changes that have already been agreed to on the mailing list). There is no point in reviewing this draft other than
447         to verify that the partitioning has been done correctly. Roy T. Fielding, Yves Lafon, and Julian Reschke will be the editors
448         after draft 00 is submitted.
449      </p> 
450      <p>Discussion of this draft should take place on the HTTPBIS working group mailing list (ietf-http-wg@w3.org). The current issues
451         list is at &lt;<a href="http://www3.tools.ietf.org/wg/httpbis/trac/report/11">http://www3.tools.ietf.org/wg/httpbis/trac/report/11</a>&gt; and related documents (including fancy diffs) can be found at &lt;<a href="http://www3.tools.ietf.org/wg/httpbis/">http://www3.tools.ietf.org/wg/httpbis/</a>&gt;.
452      </p> 
453      <hr class="noprint">
454      <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1>
455      <ul class="toc">
456         <li>1.&nbsp;&nbsp;&nbsp;<a href="#introduction">Introduction</a></li>
457         <li>2.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.2">Status Code Definitions</a><ul>
458               <li>2.1&nbsp;&nbsp;&nbsp;<a href="#status.401">401 Unauthorized</a></li>
459               <li>2.2&nbsp;&nbsp;&nbsp;<a href="#status.407">407 Proxy Authentication Required</a></li>
460            </ul>
461         </li>
462         <li>3.&nbsp;&nbsp;&nbsp;<a href="#header.fields">Header Field Definitions</a><ul>
463               <li>3.1&nbsp;&nbsp;&nbsp;<a href="#header.authorization">Authorization</a></li>
464               <li>3.2&nbsp;&nbsp;&nbsp;<a href="#header.proxy-authenticate">Proxy-Authenticate</a></li>
465               <li>3.3&nbsp;&nbsp;&nbsp;<a href="#header.proxy-authorization">Proxy-Authorization</a></li>
466               <li>3.4&nbsp;&nbsp;&nbsp;<a href="#header.www-authenticate">WWW-Authenticate</a></li>
467            </ul>
468         </li>
469         <li>4.&nbsp;&nbsp;&nbsp;<a href="#IANA.considerations">IANA Considerations</a></li>
470         <li>5.&nbsp;&nbsp;&nbsp;<a href="#security.considerations">Security Considerations</a><ul>
471               <li>5.1&nbsp;&nbsp;&nbsp;<a href="#auth.credentials.and.idle.clients">Authentication Credentials and Idle Clients</a></li>
472            </ul>
473         </li>
474         <li>6.&nbsp;&nbsp;&nbsp;<a href="#ack">Acknowledgments</a></li>
475         <li>7.&nbsp;&nbsp;&nbsp;<a href="#rfc.references">References</a></li>
476         <li><a href="#rfc.authors">Authors' Addresses</a></li>
477         <li><a href="#rfc.index">Index</a></li>
478         <li><a href="#rfc.ipr">Intellectual Property and Copyright Statements</a></li>
479      </ul>
480      <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a>&nbsp;<a id="introduction" href="#introduction">Introduction</a></h1>
481      <p id="rfc.section.1.p.1">This document will define aspects of HTTP related to access control and authentication. Right now it only includes the extracted
482         relevant sections of <a href="#RFC2616">RFC 2616</a> <cite title="Hypertext Transfer Protocol -- HTTP/1.1" id="rfc.xref.RFC2616.2">[RFC2616]</cite> with only minor edits.
483      </p>
484      <p id="rfc.section.1.p.2">HTTP provides several <em class="bcp14">OPTIONAL</em> challenge-response authentication mechanisms which can be used by a server to challenge a client request and by a client to
485         provide authentication information. The general framework for access authentication, and the specification of "basic" and
486         "digest" authentication, are specified in "HTTP Authentication: Basic and Digest Access Authentication" <a href="#RFC2617" id="rfc.xref.RFC2617.1"><cite title="HTTP Authentication: Basic and Digest Access Authentication">[RFC2617]</cite></a>. This specification adopts the definitions of "challenge" and "credentials" from that specification.
487      </p>
488      <h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a>&nbsp;Status Code Definitions
489      </h1>
490      <div id="rfc.iref."></div>
491      <div id="rfc.iref.s.1"></div>
492      <h2 id="rfc.section.2.1"><a href="#rfc.section.2.1">2.1</a>&nbsp;<a id="status.401" href="#status.401">401 Unauthorized</a></h2>
493      <p id="rfc.section.2.1.p.1">The request requires user authentication. The response <em class="bcp14">MUST</em> include a WWW-Authenticate header field (<a href="#header.www-authenticate" id="rfc.xref.header.www-authenticate.1" title="WWW-Authenticate">Section&nbsp;3.4</a>) containing a challenge applicable to the requested resource. The client <em class="bcp14">MAY</em> repeat the request with a suitable Authorization header field (<a href="#header.authorization" id="rfc.xref.header.authorization.1" title="Authorization">Section&nbsp;3.1</a>). If the request already included Authorization credentials, then the 401 response indicates that authorization has been
494         refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has
495         already attempted authentication at least once, then the user <em class="bcp14">SHOULD</em> be presented the entity that was given in the response, since that entity might include relevant diagnostic information. HTTP
496         access authentication is explained in "HTTP Authentication: Basic and Digest Access Authentication" <a href="#RFC2617" id="rfc.xref.RFC2617.2"><cite title="HTTP Authentication: Basic and Digest Access Authentication">[RFC2617]</cite></a>.
497      </p>
498      <div id="rfc.iref.1"></div>
499      <div id="rfc.iref.s.2"></div>
500      <h2 id="rfc.section.2.2"><a href="#rfc.section.2.2">2.2</a>&nbsp;<a id="status.407" href="#status.407">407 Proxy Authentication Required</a></h2>
501      <p id="rfc.section.2.2.p.1">This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy. The
502         proxy <em class="bcp14">MUST</em> return a Proxy-Authenticate header field (<a href="#header.proxy-authenticate" id="rfc.xref.header.proxy-authenticate.1" title="Proxy-Authenticate">Section&nbsp;3.2</a>) containing a challenge applicable to the proxy for the requested resource. The client <em class="bcp14">MAY</em> repeat the request with a suitable Proxy-Authorization header field (<a href="#header.proxy-authorization" id="rfc.xref.header.proxy-authorization.1" title="Proxy-Authorization">Section&nbsp;3.3</a>). HTTP access authentication is explained in "HTTP Authentication: Basic and Digest Access Authentication" <a href="#RFC2617" id="rfc.xref.RFC2617.3"><cite title="HTTP Authentication: Basic and Digest Access Authentication">[RFC2617]</cite></a>.
503      </p>
504      <h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a>&nbsp;<a id="header.fields" href="#header.fields">Header Field Definitions</a></h1>
505      <p id="rfc.section.3.p.1">This section defines the syntax and semantics of all standard HTTP/1.1 header fields. For entity-header fields, both sender
506         and recipient refer to either the client or the server, depending on who sends and who receives the entity.
507      </p>
508      <div id="rfc.iref.a.1"></div>
509      <div id="rfc.iref.h.1"></div>
510      <h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a>&nbsp;<a id="header.authorization" href="#header.authorization">Authorization</a></h2>
511      <p id="rfc.section.3.1.p.1">A user agent that wishes to authenticate itself with a server-- usually, but not necessarily, after receiving a 401 response--does
512         so by including an Authorization request-header field with the request. The Authorization field value consists of credentials
513         containing the authentication information of the user agent for the realm of the resource being requested.
514      </p>
515      <div id="rfc.figure.u.1"></div><pre class="inline"><span id="rfc.iref.g.1"></span>       Authorization  = "Authorization" ":" credentials
516</pre><p id="rfc.section.3.1.p.3">HTTP access authentication is described in "HTTP Authentication: Basic and Digest Access Authentication" <a href="#RFC2617" id="rfc.xref.RFC2617.4"><cite title="HTTP Authentication: Basic and Digest Access Authentication">[RFC2617]</cite></a>. If a request is authenticated and a realm specified, the same credentials <em class="bcp14">SHOULD</em> be valid for all other requests within this realm (assuming that the authentication scheme itself does not require otherwise,
517         such as credentials that vary according to a challenge value or using synchronized clocks).
518      </p>
519      <p id="rfc.section.3.1.p.4">When a shared cache (see <a href="p6-cache.html#shared.and.non-shared.caches" title="Shared and Non-Shared Caches">Section 2.7</a> of <a href="#Part6" id="rfc.xref.Part6.1"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>) receives a request containing an Authorization field, it <em class="bcp14">MUST NOT</em> return the corresponding response as a reply to any other request, unless one of the following specific exceptions holds:
520      </p>
521      <p id="rfc.section.3.1.p.5"> </p>
522      <ol>
523         <li>If the response includes the "s-maxage" cache-control directive, the cache <em class="bcp14">MAY</em> use that response in replying to a subsequent request. But (if the specified maximum age has passed) a proxy cache <em class="bcp14">MUST</em> first revalidate it with the origin server, using the request-headers from the new request to allow the origin server to authenticate
524            the new request. (This is the defined behavior for s-maxage.) If the response includes "s-maxage=0", the proxy <em class="bcp14">MUST</em> always revalidate it before re-using it.
525         </li>
526         <li>If the response includes the "must-revalidate" cache-control directive, the cache <em class="bcp14">MAY</em> use that response in replying to a subsequent request. But if the response is stale, all caches <em class="bcp14">MUST</em> first revalidate it with the origin server, using the request-headers from the new request to allow the origin server to authenticate
527            the new request.
528         </li>
529         <li>If the response includes the "public" cache-control directive, it <em class="bcp14">MAY</em> be returned in reply to any subsequent request.
530         </li>
531      </ol>
532      <div id="rfc.iref.p.1"></div>
533      <div id="rfc.iref.h.2"></div>
534      <h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a>&nbsp;<a id="header.proxy-authenticate" href="#header.proxy-authenticate">Proxy-Authenticate</a></h2>
535      <p id="rfc.section.3.2.p.1">The Proxy-Authenticate response-header field <em class="bcp14">MUST</em> be included as part of a 407 (Proxy Authentication Required) response. The field value consists of a challenge that indicates
536         the authentication scheme and parameters applicable to the proxy for this Request-URI.
537      </p>
538      <div id="rfc.figure.u.2"></div><pre class="inline"><span id="rfc.iref.g.2"></span>    Proxy-Authenticate  = "Proxy-Authenticate" ":" 1#challenge
539</pre><p id="rfc.section.3.2.p.3">The HTTP access authentication process is described in "HTTP Authentication: Basic and Digest Access Authentication" <a href="#RFC2617" id="rfc.xref.RFC2617.5"><cite title="HTTP Authentication: Basic and Digest Access Authentication">[RFC2617]</cite></a>. Unlike WWW-Authenticate, the Proxy-Authenticate header field applies only to the current connection and <em class="bcp14">SHOULD NOT</em> be passed on to downstream clients. However, an intermediate proxy might need to obtain its own credentials by requesting
540         them from the downstream client, which in some circumstances will appear as if the proxy is forwarding the Proxy-Authenticate
541         header field.
542      </p>
543      <div id="rfc.iref.p.2"></div>
544      <div id="rfc.iref.h.3"></div>
545      <h2 id="rfc.section.3.3"><a href="#rfc.section.3.3">3.3</a>&nbsp;<a id="header.proxy-authorization" href="#header.proxy-authorization">Proxy-Authorization</a></h2>
546      <p id="rfc.section.3.3.p.1">The Proxy-Authorization request-header field allows the client to identify itself (or its user) to a proxy which requires
547         authentication. The Proxy-Authorization field value consists of credentials containing the authentication information of the
548         user agent for the proxy and/or realm of the resource being requested.
549      </p>
550      <div id="rfc.figure.u.3"></div><pre class="inline"><span id="rfc.iref.g.3"></span>    Proxy-Authorization     = "Proxy-Authorization" ":" credentials
551</pre><p id="rfc.section.3.3.p.3">The HTTP access authentication process is described in "HTTP Authentication: Basic and Digest Access Authentication" <a href="#RFC2617" id="rfc.xref.RFC2617.6"><cite title="HTTP Authentication: Basic and Digest Access Authentication">[RFC2617]</cite></a>. Unlike Authorization, the Proxy-Authorization header field applies only to the next outbound proxy that demanded authentication
552         using the Proxy-Authenticate field. When multiple proxies are used in a chain, the Proxy-Authorization header field is consumed
553         by the first outbound proxy that was expecting to receive credentials. A proxy <em class="bcp14">MAY</em> relay the credentials from the client request to the next proxy if that is the mechanism by which the proxies cooperatively
554         authenticate a given request.
555      </p>
556      <div id="rfc.iref.w.1"></div>
557      <div id="rfc.iref.h.4"></div>
558      <h2 id="rfc.section.3.4"><a href="#rfc.section.3.4">3.4</a>&nbsp;<a id="header.www-authenticate" href="#header.www-authenticate">WWW-Authenticate</a></h2>
559      <p id="rfc.section.3.4.p.1">The WWW-Authenticate response-header field <em class="bcp14">MUST</em> be included in 401 (Unauthorized) response messages. The field value consists of at least one challenge that indicates the
560         authentication scheme(s) and parameters applicable to the Request-URI.
561      </p>
562      <div id="rfc.figure.u.4"></div><pre class="inline"><span id="rfc.iref.g.4"></span>    WWW-Authenticate  = "WWW-Authenticate" ":" 1#challenge
563</pre><p id="rfc.section.3.4.p.3">The HTTP access authentication process is described in "HTTP Authentication: Basic and Digest Access Authentication" <a href="#RFC2617" id="rfc.xref.RFC2617.7"><cite title="HTTP Authentication: Basic and Digest Access Authentication">[RFC2617]</cite></a>. User agents are advised to take special care in parsing the WWW-Authenticate field value as it might contain more than one
564         challenge, or if more than one WWW-Authenticate header field is provided, the contents of a challenge itself can contain a
565         comma-separated list of authentication parameters.
566      </p>
567      <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a>&nbsp;<a id="IANA.considerations" href="#IANA.considerations">IANA Considerations</a></h1>
568      <p id="rfc.section.4.p.1">TBD.</p>
569      <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a>&nbsp;<a id="security.considerations" href="#security.considerations">Security Considerations</a></h1>
570      <p id="rfc.section.5.p.1">This section is meant to inform application developers, information providers, and users of the security limitations in HTTP/1.1
571         as described by this document. The discussion does not include definitive solutions to the problems revealed, though it does
572         make some suggestions for reducing security risks.
573      </p>
574      <h2 id="rfc.section.5.1"><a href="#rfc.section.5.1">5.1</a>&nbsp;<a id="auth.credentials.and.idle.clients" href="#auth.credentials.and.idle.clients">Authentication Credentials and Idle Clients</a></h2>
575      <p id="rfc.section.5.1.p.1">Existing HTTP clients and user agents typically retain authentication information indefinitely. HTTP/1.1. does not provide
576         a method for a server to direct clients to discard these cached credentials. This is a significant defect that requires further
577         extensions to HTTP. Circumstances under which credential caching can interfere with the application's security model include
578         but are not limited to:
579      </p>
580      <ul>
581         <li>Clients which have been idle for an extended period following which the server might wish to cause the client to reprompt
582            the user for credentials.
583         </li>
584         <li>Applications which include a session termination indication (such as a `logout' or `commit' button on a page) after which
585            the server side of the application `knows' that there is no further reason for the client to retain the credentials.
586         </li>
587      </ul>
588      <p id="rfc.section.5.1.p.2">This is currently under separate study. There are a number of work-arounds to parts of this problem, and we encourage the
589         use of password protection in screen savers, idle time-outs, and other methods which mitigate the security problems inherent
590         in this problem. In particular, user agents which cache credentials are encouraged to provide a readily accessible mechanism
591         for discarding cached credentials under user control.
592      </p>
593      <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a>&nbsp;<a id="ack" href="#ack">Acknowledgments</a></h1>
594      <p id="rfc.section.6.p.1">Based on an XML translation of RFC 2616 by Julian Reschke.</p>
595      <h1 id="rfc.references"><a href="#rfc.section.7" id="rfc.section.7">7.</a> References
596      </h1>
597      <table>     
598         <tr>
599            <td class="reference"><b id="Part6">[Part6]</b></td>
600            <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, and <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">T. Berners-Lee</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-00">HTTP/1.1, part 6: Caching</a>”, Internet-Draft&nbsp;draft-ietf-httpbis-p6-cache-00 (work in progress), December&nbsp;2007.
601            </td>
602         </tr>
603         <tr>
604            <td class="reference"><b id="RFC2616">[RFC2616]</b></td>
605            <td class="top"><a href="mailto:fielding@ics.uci.edu" title="University of California, Irvine">Fielding, R.</a>, <a href="mailto:jg@w3.org" title="W3C">Gettys, J.</a>, <a href="mailto:mogul@wrl.dec.com" title="Compaq Computer Corporation">Mogul, J.</a>, <a href="mailto:frystyk@w3.org" title="MIT Laboratory for Computer Science">Frystyk, H.</a>, <a href="mailto:masinter@parc.xerox.com" title="Xerox Corporation">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, and <a href="mailto:timbl@w3.org" title="W3C">T. Berners-Lee</a>, “<a href="http://tools.ietf.org/html/rfc2616">Hypertext Transfer Protocol -- HTTP/1.1</a>”, RFC&nbsp;2616, June&nbsp;1999.
606            </td>
607         </tr>
608         <tr>
609            <td class="reference"><b id="RFC2617">[RFC2617]</b></td>
610            <td class="top"><a href="mailto:john@math.nwu.edu" title="Northwestern University, Department of Mathematics">Franks, J.</a>, <a href="mailto:pbaker@verisign.com" title="Verisign Inc.">Hallam-Baker, P.</a>, <a href="mailto:jeff@AbiSource.com" title="AbiSource, Inc.">Hostetler, J.</a>, <a href="mailto:lawrence@agranat.com" title="Agranat Systems, Inc.">Lawrence, S.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, Luotonen, A., and <a href="mailto:stewart@OpenMarket.com" title="Open Market, Inc.">L. Stewart</a>, “<a href="http://tools.ietf.org/html/rfc2617">HTTP Authentication: Basic and Digest Access Authentication</a>”, RFC&nbsp;2617, June&nbsp;1999.
611            </td>
612         </tr>
613      </table>
614      <div class="avoidbreak">
615         <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1>
616         <address class="vcard"><span class="vcardline"><span class="fn">Roy T. Fielding</span>
617               (editor)
618               <span class="n hidden"><span class="family-name">Fielding</span><span class="given-name">Roy T.</span></span></span><span class="org vcardline">Day Software</span><span class="adr"><span class="street-address vcardline">23 Corporate Plaza DR, Suite 280</span><span class="vcardline"><span class="locality">Newport Beach</span>, <span class="region">CA</span>&nbsp;<span class="postal-code">92660</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline tel">Phone: <a href="tel:+1-949-706-5300"><span class="value">+1-949-706-5300</span></a></span><span class="vcardline tel"><span class="type">Fax</span>: <a href="fax:+1-949-706-5305"><span class="value">+1-949-706-5305</span></a></span><span class="vcardline">EMail: <a href="mailto:fielding@gbiv.com"><span class="email">fielding@gbiv.com</span></a></span><span class="vcardline">URI: <a href="http://roy.gbiv.com/" class="url">http://roy.gbiv.com/</a></span></address>
619         <address class="vcard"><span class="vcardline"><span class="fn">Jim Gettys</span><span class="n hidden"><span class="family-name">Gettys</span><span class="given-name">Jim</span></span></span><span class="org vcardline">One Laptop per Child</span><span class="adr"><span class="street-address vcardline">21 Oak Knoll Road</span><span class="vcardline"><span class="locality">Carlisle</span>, <span class="region">MA</span>&nbsp;<span class="postal-code">01741</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:jg@laptop.org"><span class="email">jg@laptop.org</span></a></span><span class="vcardline">URI: <a href="http://www.laptop.org/" class="url">http://www.laptop.org/</a></span></address>
620         <address class="vcard"><span class="vcardline"><span class="fn">Jeffrey C. Mogul</span><span class="n hidden"><span class="family-name">Mogul</span><span class="given-name">Jeffrey C.</span></span></span><span class="org vcardline">Hewlett-Packard Company</span><span class="adr"><span class="street-address vcardline">HP Labs, Large Scale Systems Group</span><span class="street-address vcardline">1501 Page Mill Road, MS 1177</span><span class="vcardline"><span class="locality">Palo Alto</span>, <span class="region">CA</span>&nbsp;<span class="postal-code">94304</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:JeffMogul@acm.org"><span class="email">JeffMogul@acm.org</span></a></span></address>
621         <address class="vcard"><span class="vcardline"><span class="fn">Henrik Frystyk Nielsen</span><span class="n hidden"><span class="family-name">Frystyk</span></span></span><span class="org vcardline">Microsoft Corporation</span><span class="adr"><span class="street-address vcardline">1 Microsoft Way</span><span class="vcardline"><span class="locality">Redmond</span>, <span class="region">WA</span>&nbsp;<span class="postal-code">98052</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:henrikn@microsoft.com"><span class="email">henrikn@microsoft.com</span></a></span></address>
622         <address class="vcard"><span class="vcardline"><span class="fn">Larry Masinter</span><span class="n hidden"><span class="family-name">Masinter</span><span class="given-name">Larry</span></span></span><span class="org vcardline">Adobe Systems, Incorporated</span><span class="adr"><span class="street-address vcardline">345 Park Ave</span><span class="vcardline"><span class="locality">San Jose</span>, <span class="region">CA</span>&nbsp;<span class="postal-code">95110</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:LMM@acm.org"><span class="email">LMM@acm.org</span></a></span><span class="vcardline">URI: <a href="http://larry.masinter.net/" class="url">http://larry.masinter.net/</a></span></address>
623         <address class="vcard"><span class="vcardline"><span class="fn">Paul J. Leach</span><span class="n hidden"><span class="family-name">Leach</span><span class="given-name">Paul J.</span></span></span><span class="org vcardline">Microsoft Corporation</span><span class="adr"><span class="street-address vcardline">1 Microsoft Way</span><span class="vcardline"><span class="locality">Redmond</span>, <span class="region">WA</span>&nbsp;<span class="postal-code">98052</span></span></span><span class="vcardline">EMail: <a href="mailto:paulle@microsoft.com"><span class="email">paulle@microsoft.com</span></a></span></address>
624         <address class="vcard"><span class="vcardline"><span class="fn">Tim Berners-Lee</span><span class="n hidden"><span class="family-name">Berners-Lee</span><span class="given-name">Tim</span></span></span><span class="org vcardline">World Wide Web Consortium</span><span class="adr"><span class="street-address vcardline">MIT Computer Science and Artificial Intelligence Laboratory</span><span class="street-address vcardline">The Stata Center, Building 32</span><span class="street-address vcardline">32 Vassar Street</span><span class="vcardline"><span class="locality">Cambridge</span>, <span class="region">MA</span>&nbsp;<span class="postal-code">02139</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:timbl@w3.org"><span class="email">timbl@w3.org</span></a></span><span class="vcardline">URI: <a href="http://www.w3.org/People/Berners-Lee/" class="url">http://www.w3.org/People/Berners-Lee/</a></span></address>
625      </div>
626      <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1>
627      <p class="noprint"><a href="#rfc.index.4">4</a> <a href="#rfc.index.A">A</a> <a href="#rfc.index.G">G</a> <a href="#rfc.index.H">H</a> <a href="#rfc.index.P">P</a> <a href="#rfc.index.R">R</a> <a href="#rfc.index.S">S</a> <a href="#rfc.index.W">W</a> 
628      </p>
629      <div class="print2col">
630         <ul class="ind">
631            <li><a id="rfc.index.4" href="#rfc.index.4"><b>4</b></a><ul>
632                  <li>401 Unauthorized (status code)&nbsp;&nbsp;<a href="#rfc.iref."><b>2.1</b></a></li>
633                  <li>407 Proxy Authentication Required (status code)&nbsp;&nbsp;<a href="#rfc.iref.1"><b>2.2</b></a></li>
634               </ul>
635            </li>
636            <li><a id="rfc.index.A" href="#rfc.index.A"><b>A</b></a><ul>
637                  <li>Authorization header&nbsp;&nbsp;<a href="#rfc.xref.header.authorization.1">2.1</a>, <a href="#rfc.iref.a.1"><b>3.1</b></a></li>
638               </ul>
639            </li>
640            <li><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul>
641                  <li><tt>Grammar</tt>&nbsp;&nbsp;
642                     <ul>
643                        <li><tt>Authorization</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.1"><b>3.1</b></a></li>
644                        <li><tt>Proxy-Authenticate</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.2"><b>3.2</b></a></li>
645                        <li><tt>Proxy-Authorization</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.3"><b>3.3</b></a></li>
646                        <li><tt>WWW-Authenticate</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.4"><b>3.4</b></a></li>
647                     </ul>
648                  </li>
649               </ul>
650            </li>
651            <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul>
652                  <li>Headers&nbsp;&nbsp;
653                     <ul>
654                        <li>Authorization&nbsp;&nbsp;<a href="#rfc.xref.header.authorization.1">2.1</a>, <a href="#rfc.iref.h.1"><b>3.1</b></a></li>
655                        <li>Proxy-Authenticate&nbsp;&nbsp;<a href="#rfc.xref.header.proxy-authenticate.1">2.2</a>, <a href="#rfc.iref.h.2"><b>3.2</b></a></li>
656                        <li>Proxy-Authorization&nbsp;&nbsp;<a href="#rfc.xref.header.proxy-authorization.1">2.2</a>, <a href="#rfc.iref.h.3"><b>3.3</b></a></li>
657                        <li>WWW-Authenticate&nbsp;&nbsp;<a href="#rfc.xref.header.www-authenticate.1">2.1</a>, <a href="#rfc.iref.h.4"><b>3.4</b></a></li>
658                     </ul>
659                  </li>
660               </ul>
661            </li>
662            <li><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul>
663                  <li><em>Part6</em>&nbsp;&nbsp;<a href="#rfc.xref.Part6.1">3.1</a>, <a href="#Part6"><b>7</b></a><ul>
664                        <li><em>Section 2.7</em>&nbsp;&nbsp;<a href="#rfc.xref.Part6.1">3.1</a></li>
665                     </ul>
666                  </li>
667                  <li>Proxy-Authenticate header&nbsp;&nbsp;<a href="#rfc.xref.header.proxy-authenticate.1">2.2</a>, <a href="#rfc.iref.p.1"><b>3.2</b></a></li>
668                  <li>Proxy-Authorization header&nbsp;&nbsp;<a href="#rfc.xref.header.proxy-authorization.1">2.2</a>, <a href="#rfc.iref.p.2"><b>3.3</b></a></li>
669               </ul>
670            </li>
671            <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul>
672                  <li><em>RFC2616</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.1">§</a>, <a href="#rfc.xref.RFC2616.2">1</a>, <a href="#RFC2616"><b>7</b></a></li>
673                  <li><em>RFC2617</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2617.1">1</a>, <a href="#rfc.xref.RFC2617.2">2.1</a>, <a href="#rfc.xref.RFC2617.3">2.2</a>, <a href="#rfc.xref.RFC2617.4">3.1</a>, <a href="#rfc.xref.RFC2617.5">3.2</a>, <a href="#rfc.xref.RFC2617.6">3.3</a>, <a href="#rfc.xref.RFC2617.7">3.4</a>, <a href="#RFC2617"><b>7</b></a></li>
674               </ul>
675            </li>
676            <li><a id="rfc.index.S" href="#rfc.index.S"><b>S</b></a><ul>
677                  <li>Status Codes&nbsp;&nbsp;
678                     <ul>
679                        <li>401 Unauthorized&nbsp;&nbsp;<a href="#rfc.iref.s.1"><b>2.1</b></a></li>
680                        <li>407 Proxy Authentication Required&nbsp;&nbsp;<a href="#rfc.iref.s.2"><b>2.2</b></a></li>
681                     </ul>
682                  </li>
683               </ul>
684            </li>
685            <li><a id="rfc.index.W" href="#rfc.index.W"><b>W</b></a><ul>
686                  <li>WWW-Authenticate header&nbsp;&nbsp;<a href="#rfc.xref.header.www-authenticate.1">2.1</a>, <a href="#rfc.iref.w.1"><b>3.4</b></a></li>
687               </ul>
688            </li>
689         </ul>
690      </div>
691      <h1><a id="rfc.copyright" href="#rfc.copyright">Full Copyright Statement</a></h1>
692      <p>Copyright © The IETF Trust (2007).</p>
693      <p>This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the
694         authors retain all their rights.
695      </p>
696      <p>This document and the information contained herein are provided on an “AS IS” basis and THE CONTRIBUTOR, THE ORGANIZATION
697         HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE
698         DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN
699         WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
700      </p>
701      <h1><a id="rfc.ipr" href="#rfc.ipr">Intellectual Property</a></h1>
702      <p>The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might
703         be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any
704         license under such rights might or might not be available; nor does it represent that it has made any independent effort to
705         identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and
706         BCP 79.
707      </p>
708      <p>Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result
709         of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users
710         of this specification can be obtained from the IETF on-line IPR repository at <a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
711      </p>
712      <p>The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary
713         rights that may cover technology that may be required to implement this standard. Please address the information to the IETF
714         at <a href="mailto:ietf-ipr@ietf.org">ietf-ipr@ietf.org</a>.
715      </p>
716   </body>
717</html>
Note: See TracBrowser for help on using the repository browser.