diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-11 15:36:45 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-11 15:36:45 +0000 |
commit | 90449abd576c6153650b7201f68da897f05b8717 (patch) | |
tree | c7e55ce93c20b3d9031ce8fa94268714b02cdd19 /net | |
parent | d7b175e8762301a1bfca9d17681111bbf5bf5c0a (diff) | |
download | chromium_src-90449abd576c6153650b7201f68da897f05b8717.zip chromium_src-90449abd576c6153650b7201f68da897f05b8717.tar.gz chromium_src-90449abd576c6153650b7201f68da897f05b8717.tar.bz2 |
webRequest.onAuthRequired listeners can provide authentication credentials.
onAuthRequired listeners that specify "blocking" in the extraInfoSpec can return authentication credentials [username and password] in the BlockingResponse. If these are provided, Chrome will use these credentials rather than showing a login prompt for the user.
If "blocking" is not specified, or an authCredentials object is not present in the BlockingResponse, then a login prompt will be displayed.
Warning: If the authentication credentials are invalid, the extension may still present credentials for subsequent challenges. This could lead to infinite loops of bad credentials being entered without user intervention.
BUG=32056
TEST=Write an extension which does a blocking onAuthRequired and provides correct credentials, validate that it works.
Review URL: http://codereview.chromium.org/8015004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104896 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/net_log_event_type_list.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/base/net_log_event_type_list.h b/net/base/net_log_event_type_list.h index 1369790..b03bc27 100644 --- a/net/base/net_log_event_type_list.h +++ b/net/base/net_log_event_type_list.h @@ -1207,6 +1207,14 @@ EVENT_TYPE(CHROME_EXTENSION_MODIFIED_HEADERS) // } EVENT_TYPE(CHROME_EXTENSION_IGNORED_DUE_TO_CONFLICT) +// This event is created when a Chrome extension provides authentication +// credentials. +// +// { +// "extension_id": <Extension ID that provides credentials> +// } +EVENT_TYPE(CHROME_EXTENSION_PROVIDE_AUTH_CREDENTIALS) + // ------------------------------------------------------------------------ // HostBlacklistManager // ------------------------------------------------------------------------ |