169 lines
No EOL
7 KiB
HTML
169 lines
No EOL
7 KiB
HTML
<html>
|
|
<head>
|
|
<title>RFC 7235 - 401 Unauthorized</title>
|
|
<style type="text/css">
|
|
@media only screen
|
|
and (min-width: 992px)
|
|
and (max-width: 1199px) {
|
|
body { font-size: 14pt; }
|
|
div.content { width: 96ex; margin: 0 auto; }
|
|
}
|
|
@media only screen
|
|
and (min-width: 768px)
|
|
and (max-width: 991px) {
|
|
body { font-size: 14pt; }
|
|
div.content { width: 96ex; margin: 0 auto; }
|
|
}
|
|
@media only screen
|
|
and (min-width: 480px)
|
|
and (max-width: 767px) {
|
|
body { font-size: 11pt; }
|
|
div.content { width: 96ex; margin: 0 auto; }
|
|
}
|
|
@media only screen
|
|
and (max-width: 479px) {
|
|
body { font-size: 8pt; }
|
|
div.content { width: 96ex; margin: 0 auto; }
|
|
}
|
|
@media only screen
|
|
and (min-device-width : 375px)
|
|
and (max-device-width : 667px) {
|
|
body { font-size: 9.5pt; }
|
|
div.content { width: 96ex; margin: 0; }
|
|
}
|
|
@media only screen
|
|
and (min-device-width: 1200px) {
|
|
body { font-size: 10pt; margin: 0 4em; }
|
|
div.content { width: 96ex; margin: 0; }
|
|
}
|
|
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
|
|
font-weight: bold;
|
|
/* line-height: 0pt; */
|
|
display: inline;
|
|
white-space: pre;
|
|
font-family: monospace;
|
|
font-size: 1em;
|
|
font-weight: bold;
|
|
}
|
|
pre {
|
|
font-size: 1em;
|
|
margin-top: 0px;
|
|
margin-bottom: 0px;
|
|
}
|
|
.pre {
|
|
white-space: pre;
|
|
font-family: monospace;
|
|
}
|
|
.header{
|
|
font-weight: bold;
|
|
}
|
|
.newpage {
|
|
page-break-before: always;
|
|
}
|
|
.invisible {
|
|
text-decoration: none;
|
|
color: white;
|
|
}
|
|
a.selflink {
|
|
color: black;
|
|
text-decoration: none;
|
|
}
|
|
@media print {
|
|
body {
|
|
font-family: monospace;
|
|
font-size: 10.5pt;
|
|
}
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
a:link, a:visited {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
.noprint {
|
|
display: none;
|
|
}
|
|
}
|
|
@media screen {
|
|
.grey, .grey a:link, .grey a:visited {
|
|
color: #777;
|
|
}
|
|
.docinfo {
|
|
background-color: #EEE;
|
|
}
|
|
.top {
|
|
border-top: 7px solid #EEE;
|
|
}
|
|
.pad {
|
|
padding-top: 7px;
|
|
line-height: 24px;
|
|
padding-bottom: 4px;
|
|
}
|
|
.bgwhite { background-color: white; }
|
|
.bgred { background-color: #F44; }
|
|
.bggrey { background-color: #666; }
|
|
.bgbrown { background-color: #840; }
|
|
.bgorange { background-color: #FA0; }
|
|
.bgyellow { background-color: #EE0; }
|
|
.bgmagenta{ background-color: #F4F; }
|
|
.bgblue { background-color: #66F; }
|
|
.bgcyan { background-color: #4DD; }
|
|
.bggreen { background-color: #4F4; }
|
|
|
|
.legend { font-size: 90%; }
|
|
.cplate { font-size: 70%; border: solid grey 1px; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<span class="pre noprint docinfo top">[<a href="https://tools.ietf.org/html/" title="Document search and retrieval page">Docs</a>] [<a href="https://tools.ietf.org/rfc/rfc7235.txt" title="Plaintext version of this document">txt</a>|<a href="https://tools.ietf.org/pdf/rfc7235" title="PDF version of this document">pdf</a>] [<a href="https://tools.ietf.org/html/draft-ietf-httpbis-p7-auth" title="draft-ietf-httpbis-p7-auth">draft-ietf-http...</a>] [<a href='https://datatracker.ietf.org/doc/rfc7235' title='IESG Datatracker information for this document'>Tracker</a>] [<a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=rfc7235" title="Inline diff (wdiff)">Diff1</a>] [<a href="https://tools.ietf.org/rfcdiff?url2=rfc7235" title="Side-by-side diff">Diff2</a>] [<a href="https://datatracker.ietf.org/ipr/search/?rfc=7235&submit=rfc" title="IPR disclosures related to this document">IPR</a>] </span><br />
|
|
<span class="pre noprint docinfo"> </span><br />
|
|
<span class="pre noprint docinfo"> PROPOSED STANDARD</span><br />
|
|
<span class="pre noprint docinfo"> </span><br />
|
|
<pre>
|
|
Internet Engineering Task Force (IETF) R. Fielding, Ed.
|
|
Request for Comments: 7235 Adobe
|
|
Obsoletes: <a href="./rfc2616">2616</a> J. Reschke, Ed.
|
|
Updates: <a href="./rfc2617">2617</a> greenbytes
|
|
Category: Standards Track June 2014
|
|
ISSN: 2070-1721
|
|
|
|
|
|
<span class="h1">Hypertext Transfer Protocol (HTTP/1.1): Authentication</span>
|
|
|
|
Abstract
|
|
|
|
The Hypertext Transfer Protocol (HTTP) is a stateless application-
|
|
level protocol for distributed, collaborative, hypermedia information
|
|
systems. This document defines the HTTP Authentication framework.
|
|
|
|
<hr class='noprint' style='width: 96ex;' align='left'/><!--NewPage--><pre class='newpage'><a name="page-6" id="page-6" href="#page-6" class="invisible"> </a>
|
|
<span class="grey"><a href="https://tools.ietf.org/html/rfc7235">RFC 7235</a> HTTP/1.1 Authentication June 2014</span>
|
|
|
|
|
|
<span class="h3"><a class="selflink" name="section-3.1" href="https://tools.ietf.org/html/rfc7235#section-3.1">3.1</a>. 401 Unauthorized</span>
|
|
|
|
The 401 (Unauthorized) status code indicates that the request has not
|
|
been applied because it lacks valid authentication credentials for
|
|
the target resource. The server generating a 401 response MUST send
|
|
a WWW-Authenticate header field (<a href="https://tools.ietf.org/html/rfc7235#section-4.1">Section 4.1</a>) containing at least one
|
|
challenge applicable to the target resource.
|
|
|
|
If the request included authentication credentials, then the 401
|
|
response indicates that authorization has been refused for those
|
|
credentials. The user agent MAY repeat the request with a new or
|
|
replaced Authorization header field (<a href="https://tools.ietf.org/html/rfc7235#section-4.2">Section 4.2</a>). If the 401
|
|
response contains the same challenge as the prior response, and the
|
|
user agent has already attempted authentication at least once, then
|
|
the user agent SHOULD present the enclosed representation to the
|
|
user, since it usually contains relevant diagnostic information.
|
|
|
|
|
|
|
|
|
|
<span class="grey">Fielding & Reschke Standards Track [Page 6]</span></pre>
|
|
<hr class='noprint' style='width: 96ex;' align='left'/><!--NewPage--><pre class='newpage'><a name="page-7" id="page-7" href="#page-7" class="invisible"> </a>
|
|
</pre>
|
|
</body>
|
|
</html> |