summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authorahendrickson@google.com <ahendrickson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 04:43:31 +0000
committerahendrickson@google.com <ahendrickson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 04:43:31 +0000
commitcee6312f189d2cbdeaf4888170919422b6c65cdd (patch)
treeabfae8530416afc36f291884638fb2543b494acc /net/base
parentc91e99322f0ac5ef76165c76eb5ac3ae03f923ab (diff)
downloadchromium_src-cee6312f189d2cbdeaf4888170919422b6c65cdd.zip
chromium_src-cee6312f189d2cbdeaf4888170919422b6c65cdd.tar.gz
chromium_src-cee6312f189d2cbdeaf4888170919422b6c65cdd.tar.bz2
Attempt to back off from Kerberos authentication if we don't have credentials.
If the user has a stale TGT, or is unable to generate a TGS for the server they are trying to communicate to, then generating an authentication token fails. Rather than fail the entire network transaction in that case, we resend the request with an empty Authenticate (or Proxy-Authenticate) header, and remember that the Negotiate scheme is not a valid option for this particular transaction. If the server responds back with headers like WWW-Authenticate: Negotiate WWW-Authenticate: Digest realm=foo then the digest scheme is chosen in the next round. BUG=33033 TEST=None Review URL: http://codereview.chromium.org/3010010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/net_error_list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h
index f8b4186..38b5e143 100644
--- a/net/base/net_error_list.h
+++ b/net/base/net_error_list.h
@@ -354,6 +354,9 @@ NET_ERROR(UNSUPPORTED_AUTH_SCHEME, -339)
// Detecting the encoding of the response failed.
NET_ERROR(ENCODING_DETECTION_FAILED, -340)
+// (GSSAPI) No Kerberos credentials were available during HTTP Authentication.
+NET_ERROR(MISSING_AUTH_CREDENTIALS, -341)
+
// The cache does not have the requested entry.
NET_ERROR(CACHE_MISS, -400)