summaryrefslogtreecommitdiffstats
path: root/ios
diff options
context:
space:
mode:
authorStuart Morgan <stuartmorgan@chromium.org>2016-02-08 09:20:58 -0800
committerStuart Morgan <stuartmorgan@chromium.org>2016-02-08 17:22:25 +0000
commitd60ac4b5e67d91e5b22246e06999088bc31f57d3 (patch)
tree6c7ae6165a9fd757f8911f4f3990d542167ebc88 /ios
parent7d43320e611bacca28c619461afbef2bd501c118 (diff)
downloadchromium_src-d60ac4b5e67d91e5b22246e06999088bc31f57d3.zip
chromium_src-d60ac4b5e67d91e5b22246e06999088bc31f57d3.tar.gz
chromium_src-d60ac4b5e67d91e5b22246e06999088bc31f57d3.tar.bz2
[ios] Support for NTLM authentication method.
BUG=581721 Review URL: https://codereview.chromium.org/1646483003 Cr-Commit-Position: refs/heads/master@{#373098} (cherry picked from commit d4e1ac9679f45a854018e9bc200208fa032b54df) Review URL: https://codereview.chromium.org/1679703003 . Cr-Commit-Position: refs/branch-heads/2623@{#294} Cr-Branched-From: 92d77538a86529ca35f9220bd3cd512cbea1f086-refs/heads/master@{#369907}
Diffstat (limited to 'ios')
-rw-r--r--ios/web/web_state/ui/crw_wk_web_view_web_controller.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm b/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
index 5cebd46..de29b29 100644
--- a/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
+++ b/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
@@ -1206,6 +1206,7 @@ WKWebViewErrorSource WKWebViewErrorSourceFromError(NSError* error) {
NSURLProtectionSpace* space = challenge.protectionSpace;
DCHECK(
[space.authenticationMethod isEqual:NSURLAuthenticationMethodHTTPBasic] ||
+ [space.authenticationMethod isEqual:NSURLAuthenticationMethodNTLM] ||
[space.authenticationMethod isEqual:NSURLAuthenticationMethodHTTPDigest]);
SEL selector = @selector(webController:
@@ -1926,6 +1927,7 @@ WKWebViewErrorSource WKWebViewErrorSourceFromError(NSError* error) {
NSURLCredential*))completionHandler {
NSString* authMethod = challenge.protectionSpace.authenticationMethod;
if ([authMethod isEqual:NSURLAuthenticationMethodHTTPBasic] ||
+ [authMethod isEqual:NSURLAuthenticationMethodNTLM] ||
[authMethod isEqual:NSURLAuthenticationMethodHTTPDigest]) {
[self handleHTTPAuthForChallenge:challenge
completionHandler:completionHandler];