mirror of
https://github.com/servo/servo.git
synced 2025-09-14 00:48:20 +01:00
Update web-platform-tests to revision 9817f7f027fe1e92cc2fce31d6002c4d669918e8
This commit is contained in:
parent
8e52f8a523
commit
f3533538ea
2144 changed files with 21364 additions and 11001 deletions
134
tests/wpt/web-platform-tests/interfaces/webauthn.idl
Normal file
134
tests/wpt/web-platform-tests/interfaces/webauthn.idl
Normal file
|
@ -0,0 +1,134 @@
|
|||
[SecureContext, Exposed=Window]
|
||||
interface PublicKeyCredential : Credential {
|
||||
[SameObject] readonly attribute ArrayBuffer rawId;
|
||||
[SameObject] readonly attribute AuthenticatorResponse response;
|
||||
AuthenticationExtensions getClientExtensionResults();
|
||||
};
|
||||
|
||||
partial dictionary CredentialCreationOptions {
|
||||
MakePublicKeyCredentialOptions publicKey;
|
||||
};
|
||||
|
||||
partial dictionary CredentialRequestOptions {
|
||||
PublicKeyCredentialRequestOptions publicKey;
|
||||
};
|
||||
|
||||
partial interface PublicKeyCredential {
|
||||
static Promise < boolean > isUserVerifyingPlatformAuthenticatorAvailable();
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window]
|
||||
interface AuthenticatorResponse {
|
||||
[SameObject] readonly attribute ArrayBuffer clientDataJSON;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window]
|
||||
interface AuthenticatorAttestationResponse : AuthenticatorResponse {
|
||||
[SameObject] readonly attribute ArrayBuffer attestationObject;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window]
|
||||
interface AuthenticatorAssertionResponse : AuthenticatorResponse {
|
||||
[SameObject] readonly attribute ArrayBuffer authenticatorData;
|
||||
[SameObject] readonly attribute ArrayBuffer signature;
|
||||
[SameObject] readonly attribute ArrayBuffer userHandle;
|
||||
};
|
||||
|
||||
dictionary PublicKeyCredentialParameters {
|
||||
required PublicKeyCredentialType type;
|
||||
required COSEAlgorithmIdentifier alg;
|
||||
};
|
||||
|
||||
dictionary MakePublicKeyCredentialOptions {
|
||||
required PublicKeyCredentialRpEntity rp;
|
||||
required PublicKeyCredentialUserEntity user;
|
||||
|
||||
required BufferSource challenge;
|
||||
required sequence<PublicKeyCredentialParameters> pubKeyCredParams;
|
||||
|
||||
unsigned long timeout;
|
||||
sequence<PublicKeyCredentialDescriptor> excludeCredentials = [];
|
||||
AuthenticatorSelectionCriteria authenticatorSelection;
|
||||
AttestationConveyancePreference attestation = "none";
|
||||
AuthenticationExtensions extensions;
|
||||
};
|
||||
|
||||
dictionary PublicKeyCredentialEntity {
|
||||
required DOMString name;
|
||||
USVString icon;
|
||||
};
|
||||
|
||||
dictionary PublicKeyCredentialRpEntity : PublicKeyCredentialEntity {
|
||||
DOMString id;
|
||||
};
|
||||
|
||||
dictionary PublicKeyCredentialUserEntity : PublicKeyCredentialEntity {
|
||||
required BufferSource id;
|
||||
required DOMString displayName;
|
||||
};
|
||||
|
||||
dictionary AuthenticatorSelectionCriteria {
|
||||
AuthenticatorAttachment authenticatorAttachment;
|
||||
boolean requireResidentKey = false;
|
||||
UserVerificationRequirement userVerification = "preferred";
|
||||
};
|
||||
|
||||
enum AuthenticatorAttachment {
|
||||
"platform", // Platform attachment
|
||||
"cross-platform" // Cross-platform attachment
|
||||
};
|
||||
|
||||
enum AttestationConveyancePreference {
|
||||
"none",
|
||||
"indirect",
|
||||
"direct"
|
||||
};
|
||||
|
||||
dictionary PublicKeyCredentialRequestOptions {
|
||||
required BufferSource challenge;
|
||||
unsigned long timeout;
|
||||
USVString rpId;
|
||||
sequence<PublicKeyCredentialDescriptor> allowCredentials = [];
|
||||
UserVerificationRequirement userVerification = "preferred";
|
||||
AuthenticationExtensions extensions;
|
||||
};
|
||||
|
||||
typedef record<DOMString, any> AuthenticationExtensions;
|
||||
|
||||
dictionary CollectedClientData {
|
||||
required DOMString type;
|
||||
required DOMString challenge;
|
||||
required DOMString origin;
|
||||
required DOMString hashAlgorithm;
|
||||
DOMString tokenBindingId;
|
||||
AuthenticationExtensions clientExtensions;
|
||||
AuthenticationExtensions authenticatorExtensions;
|
||||
};
|
||||
|
||||
enum PublicKeyCredentialType {
|
||||
"public-key"
|
||||
};
|
||||
|
||||
dictionary PublicKeyCredentialDescriptor {
|
||||
required PublicKeyCredentialType type;
|
||||
required BufferSource id;
|
||||
sequence<AuthenticatorTransport> transports;
|
||||
};
|
||||
|
||||
enum AuthenticatorTransport {
|
||||
"usb",
|
||||
"nfc",
|
||||
"ble"
|
||||
};
|
||||
|
||||
typedef long COSEAlgorithmIdentifier;
|
||||
|
||||
enum UserVerificationRequirement {
|
||||
"required",
|
||||
"preferred",
|
||||
"discouraged"
|
||||
};
|
||||
|
||||
typedef sequence<AAGUID> AuthenticatorSelectionList;
|
||||
|
||||
typedef BufferSource AAGUID;
|
Loading…
Add table
Add a link
Reference in a new issue