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

Unified Diff: net/http/http_auth_controller.cc

Issue 2489883007: [net/auth] Discard current handler token generation fails. (Closed)
Patch Set: . Created 4 years, 1 month 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
« no previous file with comments | « no previous file | net/http/http_auth_handler_mock.h » ('j') | net/http/http_network_transaction_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_controller.cc
diff --git a/net/http/http_auth_controller.cc b/net/http/http_auth_controller.cc
index 78e5a0354beec639b911260a6b9621ba2aeeb727..5e614e533ab5605c047dd08ecb422a8c268fcc88 100644
--- a/net/http/http_auth_controller.cc
+++ b/net/http/http_auth_controller.cc
@@ -483,6 +483,7 @@ int HttpAuthController::HandleGenerateTokenResult(int result) {
//
// If the handler does not support any remaining identity sources, then
mmenke 2016/11/14 18:03:49 "The handler" seems incorrect here, since we're de
asanka 2016/11/14 18:49:52 DOne.
// the authentication controller will pick another authentication handler.
+ InvalidateCurrentHandler(INVALIDATE_HANDLER_AND_CACHED_CREDENTIALS);
auth_token_.clear();
return OK;
@@ -503,7 +504,7 @@ int HttpAuthController::HandleGenerateTokenResult(int result) {
// In these cases, disable the current scheme as it cannot
// succeed.
- DisableAuthScheme(handler_->auth_scheme());
+ InvalidateCurrentHandler(INVALIDATE_HANDLER_AND_DISABLE_SCHEME);
mmenke 2016/11/14 18:03:49 None of the new tests exercise this, do they?
asanka 2016/11/14 18:49:53 Not the new tests. But existing tests in the Gener
auth_token_.clear();
return OK;
« no previous file with comments | « no previous file | net/http/http_auth_handler_mock.h » ('j') | net/http/http_network_transaction_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698