Bug 59614 - WK2 Mac client certificate authentication
Summary: WK2 Mac client certificate authentication
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh All
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-04-27 09:11 PDT by Brady Eidson
Modified: 2011-04-28 12:12 PDT (History)
1 user (show)

See Also:


Attachments
Patch v1 (21.73 KB, patch)
2011-04-27 09:13 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch v2 - Update alphabetization (21.71 KB, patch)
2011-04-27 09:42 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch v3 - With WebCredential.mac.mm split off (24.44 KB, patch)
2011-04-28 09:33 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch v4 - Removed all the cross platform ifdefness, even if Mac is the only user right now. (19.44 KB, patch)
2011-04-28 11:26 PDT, Brady Eidson
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2011-04-27 09:11:37 PDT
WebKit2 on Mac needs the ability to authenticate with client certificates.

In radar as <rdar://problem/8773946>
Comment 1 Brady Eidson 2011-04-27 09:13:58 PDT
Created attachment 91296 [details]
Patch v1
Comment 2 WebKit Review Bot 2011-04-27 09:17:20 PDT
Attachment 91296 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1

Source/WebKit2/UIProcess/Authentication/AuthenticationChallengeProxy.cpp:32:  Alphabetical sorting problem.  [build/include_order] [4]
Source/WebKit2/UIProcess/API/C/mac/WKCredentialMac.cpp:31:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 2 in 13 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Brady Eidson 2011-04-27 09:42:13 PDT
Created attachment 91301 [details]
Patch v2 - Update alphabetization
Comment 4 Jeff Miller 2011-04-28 07:08:46 PDT
Comment on attachment 91301 [details]
Patch v2 - Update alphabetization

View in context: https://bugs.webkit.org/attachment.cgi?id=91301&action=review

> Source/WebKit2/UIProcess/Authentication/WebCredential.cpp:49
> +

I know it's a pain, but these member functions should really be put into a new mac/WebCredentialMac.cpp file (or mac/WebCredentialMac.mm, I'm not sure what our convention is here).
Comment 5 Brady Eidson 2011-04-28 09:27:59 PDT
(In reply to comment #4)
> (From update of attachment 91301 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=91301&action=review
> 
> > Source/WebKit2/UIProcess/Authentication/WebCredential.cpp:49
> > +
> 
> I know it's a pain, but these member functions should really be put into a new mac/WebCredentialMac.cpp file (or mac/WebCredentialMac.mm, I'm not sure what our convention is here).

I think what you were trying to say was mac/WebCredential.mac.mm  ;)
Comment 6 Brady Eidson 2011-04-28 09:28:17 PDT
And, not that much of a pain because it's just one project file change.
Comment 7 Brady Eidson 2011-04-28 09:33:14 PDT
Created attachment 91504 [details]
Patch v3 - With WebCredential.mac.mm split off
Comment 8 Brady Eidson 2011-04-28 11:26:31 PDT
Created attachment 91524 [details]
Patch v4 - Removed all the cross platform ifdefness, even if Mac is the only user right now.
Comment 9 Brady Eidson 2011-04-28 12:12:48 PDT
Landed in r85223