Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix client certificate authentication with NSURLSession on iOS
https://bugs.webkit.org/show_bug.cgi?id=157094 <rdar://problem/25946859> Patch by Alex Christensen <achristensen@webkit.org> on 2016-04-27 Reviewed by Darin Adler. * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]): We only want to create a non-persistent credential with the given user and password and store the user and password in the CredentialStorage if there is a user and password. We previously only skipped this if we were doing server trust evaluation, in which case we will have a credential from serverTrustCredential which has no user or password. When doing client certificate authentication on iOS, this completion handler is called with a credential with session persistence and also no user or password, so we need to do the same thing. The reason this was never hit on Mac was because the credential came from tryUseCertificateInfoForChallenge, which always had persistence none. Canonical link: https://commits.webkit.org/175201@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information