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

Unified Diff: chrome/browser/io_thread.cc

Issue 3155046: Add support for delegated Kerberos tickets during Negotiate authentication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
===================================================================
--- chrome/browser/io_thread.cc (revision 57541)
+++ chrome/browser/io_thread.cc (working copy)
@@ -248,16 +248,20 @@
// Get the whitelist information from the command line, create an
// HttpAuthFilterWhitelist, and attach it to the HttpAuthHandlerFactory.
- net::HttpAuthFilterWhitelist* auth_filter = NULL;
+ net::HttpAuthFilterWhitelist* auth_filter_default_credentials = NULL;
if (command_line.HasSwitch(switches::kAuthServerWhitelist)) {
- std::string auth_server_whitelist =
- command_line.GetSwitchValueASCII(switches::kAuthServerWhitelist);
- // Create a whitelist filter.
- auth_filter = new net::HttpAuthFilterWhitelist();
- auth_filter->SetWhitelist(auth_server_whitelist);
+ auth_filter_default_credentials = new net::HttpAuthFilterWhitelist(
+ command_line.GetSwitchValueASCII(switches::kAuthServerWhitelist));
}
+ net::HttpAuthFilterWhitelist* auth_filter_delegate = NULL;
+ if (command_line.HasSwitch(switches::kAuthNegotiateDelegateWhitelist)) {
+ auth_filter_delegate = new net::HttpAuthFilterWhitelist(
+ command_line.GetSwitchValueASCII(
+ switches::kAuthNegotiateDelegateWhitelist));
+ }
globals_->url_security_manager.reset(
- net::URLSecurityManager::Create(auth_filter));
+ net::URLSecurityManager::Create(auth_filter_default_credentials,
+ auth_filter_delegate));
// Determine which schemes are supported.
std::string csv_auth_schemes = "basic,digest,ntlm,negotiate";
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698