Changeset 288622 in webkit
- Timestamp:
- Jan 26, 2022 8:59:14 AM (6 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/wpt/webauthn/public-key-credential-get-success-local.https.html (modified) (1 diff)
-
LayoutTests/http/wpt/webauthn/resources/util.js (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/webauthn/PublicKeyCredential.cpp (modified) (1 diff)
-
Source/WebCore/Modules/webauthn/PublicKeyCredential.h (modified) (2 diffs)
-
Source/WebCore/Modules/webauthn/PublicKeyCredential.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r288621 r288622 1 2022-01-26 J Pascoe <j_pascoe@apple.com> 2 3 [WebAuthn] Add authenticator attachment used during authentication to credential payload 4 https://bugs.webkit.org/show_bug.cgi?id=235621 5 rdar://86538235 6 7 Reviewed by Dean Jackson. 8 9 Modify webauthn layout tests to check for new authenticatorAttachment field. 10 * http/wpt/webauthn/public-key-credential-get-success-local.https.html: 11 * http/wpt/webauthn/resources/util.js: 12 1 13 2022-01-26 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/LayoutTests/http/wpt/webauthn/public-key-credential-get-success-local.https.html
r276180 r288622 17 17 assert_array_equals(new Uint8Array(credential.response.userHandle), Base64URL.parse(testUserhandleBase64)); 18 18 assert_not_own_property(credential.getClientExtensionResults(), "appid"); 19 assert_equals(credential.authenticatorAttachment, 'platform'); 19 20 20 21 // Check authData -
trunk/LayoutTests/http/wpt/webauthn/resources/util.js
r287116 r288622 426 426 assert_array_equals(Base64URL.parse(credential.id), Base64URL.parse(testHidCredentialIdBase64)); 427 427 assert_equals(credential.type, 'public-key'); 428 assert_equals(credential.authenticatorAttachment, 'cross-platform') 428 429 assert_array_equals(new Uint8Array(credential.rawId), Base64URL.parse(testHidCredentialIdBase64)); 429 430 assert_equals(bytesToASCIIString(credential.response.clientDataJSON), '{"type":"webauthn.get","challenge":"MTIzNDU2","origin":"https://localhost:9443"}'); -
trunk/Source/WebCore/ChangeLog
r288621 r288622 1 2022-01-26 J Pascoe <j_pascoe@apple.com> 2 3 [WebAuthn] Add authenticator attachment used during authentication to credential payload 4 https://bugs.webkit.org/show_bug.cgi?id=235621 5 rdar://86538235 6 7 Reviewed by Dean Jackson. 8 9 This patch adds the authenticator attachment used to the credential response in get/create 10 webauthn calls as described in the merged PR to the spec: https://github.com/w3c/webauthn/pull/1668/files 11 12 Modified layout tests to check for authenticator attachment = (cross-platform/platform) where appropriate 13 and verified response in manual calls. 14 15 * Modules/webauthn/PublicKeyCredential.cpp: 16 (WebCore::PublicKeyCredential::authenticatorAttachment const): 17 * Modules/webauthn/PublicKeyCredential.h: 18 * Modules/webauthn/PublicKeyCredential.idl: 19 1 20 2022-01-26 Wenson Hsieh <wenson_hsieh@apple.com> 2 21 -
trunk/Source/WebCore/Modules/webauthn/PublicKeyCredential.cpp
r277740 r288622 54 54 } 55 55 56 AuthenticatorAttachment PublicKeyCredential::authenticatorAttachment() const 57 { 58 return m_response->attachment(); 59 } 60 56 61 PublicKeyCredential::PublicKeyCredential(Ref<AuthenticatorResponse>&& response) 57 62 : BasicCredential(base64URLEncodeToString(response->rawId()->data(), response->rawId()->byteLength()), Type::PublicKey, Discovery::Remote) -
trunk/Source/WebCore/Modules/webauthn/PublicKeyCredential.h
r253398 r288622 34 34 namespace WebCore { 35 35 36 enum class AuthenticatorAttachment; 36 37 class AuthenticatorResponse; 37 38 class Document; … … 47 48 ArrayBuffer* rawId() const; 48 49 AuthenticatorResponse* response() const { return m_response.ptr(); } 50 AuthenticatorAttachment authenticatorAttachment() const; 49 51 AuthenticationExtensionsClientOutputs getClientExtensionResults() const; 50 52 -
trunk/Source/WebCore/Modules/webauthn/PublicKeyCredential.idl
r283463 r288622 32 32 [SameObject] readonly attribute ArrayBuffer rawId; 33 33 [SameObject] readonly attribute AuthenticatorResponse response; 34 [SameObject] readonly attribute AuthenticatorAttachment? authenticatorAttachment; 34 35 AuthenticationExtensionsClientOutputs getClientExtensionResults(); 35 36
Note: See TracChangeset
for help on using the changeset viewer.