Bug 233389 - [WebAuthn] Consider support for the displayName for FIDO authenticator
Summary: [WebAuthn] Consider support for the displayName for FIDO authenticator
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: pascoe@apple.com
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-11-19 16:28 PST by pascoe@apple.com
Modified: 2021-12-08 15:50 PST (History)
4 users (show)

See Also:


Attachments
Patch (8.92 KB, patch)
2021-11-19 16:32 PST, pascoe@apple.com
no flags Details | Formatted Diff | Diff
Patch (8.82 KB, patch)
2021-12-06 10:30 PST, pascoe@apple.com
no flags Details | Formatted Diff | Diff
Patch (8.68 KB, patch)
2021-12-08 10:15 PST, pascoe@apple.com
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pascoe@apple.com 2021-11-19 16:28:39 PST
Vendors have requested that we support displayName for platform authenticator. Adding icon while at it.
Comment 1 pascoe@apple.com 2021-11-19 16:28:44 PST
rdar://84938707
Comment 2 pascoe@apple.com 2021-11-19 16:32:34 PST
Created attachment 444868 [details]
Patch
Comment 3 pascoe@apple.com 2021-12-06 10:30:51 PST
Created attachment 446049 [details]
Patch
Comment 4 Brent Fulgham 2021-12-07 15:01:59 PST
Comment on attachment 446049 [details]
Patch

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

> Source/WebKit/ChangeLog:9
> +        Start storing the displayName and icon fields with the platform authenticator

Are these part of the WebAuthn spec? If so, could you add comments in the code indicating the relevant spec step to make it easy to find/validate this later?

> Source/WebKit/UIProcess/API/Cocoa/_WKWebAuthenticationPanel.mm:271
> +        [credential setDictionary:@{

Could also be done with 'initWithObjectsAndKeys: ', but I doubt there's any real performance benefit to doing so.
Comment 5 pascoe@apple.com 2021-12-08 10:15:30 PST
Created attachment 446381 [details]
Patch
Comment 6 pascoe@apple.com 2021-12-08 10:16:57 PST
Thank you for the review.

Addressed comments and removed icon from the change, as it is a field that was removed from the webauthn spec in: https://github.com/w3c/webauthn/pull/1337
Comment 7 Brent Fulgham 2021-12-08 10:21:26 PST
Comment on attachment 446381 [details]
Patch

r=me. Nice!
Comment 8 EWS 2021-12-08 15:50:32 PST
Committed r286746 (244991@main): <https://commits.webkit.org/244991@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 446381 [details].