Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send bogus registration if no credentials match for U2F authenticators
https://bugs.webkit.org/show_bug.cgi?id=245904 <rdar://100329828> Reviewed by Brent Fulgham. U2F authenticators should wait for a tap before showing the no credentials status, just like FIDO2 authenticators. This patch accomplishes that by sending a bogus register command whenever there are no matching credentials from the allow list. The code already did that for registrations, this starts doing it for assertions. * Source/WebKit/UIProcess/WebAuthentication/fido/U2fAuthenticator.cpp: (WebKit::U2fAuthenticator::issueSignCommand): (WebKit::U2fAuthenticator::responseReceived): (WebKit::U2fAuthenticator::continueCheckOnlyCommandAfterResponseReceived): (WebKit::U2fAuthenticator::continueBogusCommandExcludeCredentialsMatchAfterResponseReceived): (WebKit::U2fAuthenticator::continueBogusCommandNoCredentialsAfterResponseReceived): (WebKit::U2fAuthenticator::continueBogusCommandAfterResponseReceived): Deleted. * Source/WebKit/UIProcess/WebAuthentication/fido/U2fAuthenticator.h: * LayoutTests/http/wpt/webauthn/public-key-credential-get-failure-u2f-silent.https.html: * LayoutTests/http/wpt/webauthn/public-key-credential-get-failure-u2f.https.html: * Tools/TestWebKitAPI/Tests/WebKitCocoa/web-authentication-get-assertion-u2f-no-credentials.html: Canonical link: https://commits.webkit.org/255273@main
- Loading branch information
Showing
5 changed files
with
37 additions
and
16 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
3 changes: 2 additions & 1 deletion
3
.../TestWebKitAPI/Tests/WebKitCocoa/web-authentication-get-assertion-u2f-no-credentials.html
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