Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[WebAuthn] Obtain consent to create new credential when platform auth…
…enticator in excludedCredentials https://bugs.webkit.org/show_bug.cgi?id=219813 <rdar://problem/72484635> Currently, whenever the platform authenticator is within excludedCredentials during makeCredential we always return NotAllowedError and merely flash a consent screen. This does not match the spec per Step 3.1 of makeCredential (https://w3c.github.io/webauthn/#sctn-op-make-cred). Instead, we should always obtain consent and return a different error depending on consent was obtained. Source/WebKit: A fixme to add this was inadvertently removed in https://bugs.webkit.org/attachment.cgi?id=393180&action=prettypatch Patch by John Pascoe <j_pascoe@apple.com> on 2021-10-18 Reviewed by Brent Fulgham. Added api test TestWebKitAPI.WebAuthenticationPanel.LADuplicateCredentialWithConsent * UIProcess/API/Cocoa/_WKWebAuthenticationPanel.h: * UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm: (WebKit::LocalAuthenticator::makeCredential): * UIProcess/WebAuthentication/Cocoa/WebAuthenticationPanelClient.mm: (WebKit::wkWebAuthenticationPanelUpdate): * UIProcess/WebAuthentication/WebAuthenticationFlags.h: Tools: This adds a test to confirm a different path is taken whenever consent is obtained. Patch by John Pascoe <j_pascoe@apple.com> on 2021-10-18 Reviewed by Brent Fulgham. * TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm: (-[TestWebAuthenticationPanelDelegate panel:updateWebAuthenticationPanel:]): (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/243182@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284413 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
9f9d8fc
commit 3fe4e2ad09b65d01fc90bf420815e73f00b34c4f
Showing
9 changed files
with
91 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -48,6 +48,7 @@ enum class WebAuthenticationStatus : uint8_t { | ||
PinInvalid, | ||
LAError, | ||
LAExcludeCredentialsMatched, | ||
LAExcludeCredentialsMatchedWithConsent, | ||
LANoCredential, | ||
}; | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters