Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1081)

Unified Diff: net/http/http_auth.h

Issue 6525035: Invalidate credentials if the server rejects them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify auth handlers for basic and digest Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_auth.h
diff --git a/net/http/http_auth.h b/net/http/http_auth.h
index ef779a12948ac0b6a2dddf63722e5e6483690cbd..a8a27e3155e23770fcfc428ab7a84002af02c2d2 100644
--- a/net/http/http_auth.h
+++ b/net/http/http_auth.h
@@ -161,6 +161,21 @@ class HttpAuth {
const std::set<Scheme>& disabled_schemes,
std::string* challenge_used);
+ // Check whether cached credentials should be invalidated following
+ // a rejected pre-emptive authentication attempt.
+ //
+ // |headers| must be non-NULL and contain the new HTTP response.
+ //
+ // |target| specifies whether the authentication challenge response
+ // came from a proxy or a server.
+ //
+ // |handler| must be non-NULL and specifies the handler used to
+ // generate the preemptive authentication header.
+ static bool ShouldInvalidateRejectedAuth(
+ const HttpResponseHeaders* headers,
+ Target target,
+ HttpAuthHandler* handler);
+
// Breaks up a challenge string into the the auth scheme and parameter list,
// according to RFC 2617 Sec 1.2:
// challenge = auth-scheme 1*SP 1#auth-param

Powered by Google App Engine
This is Rietveld 408576698