PublicKeyCredentialCreationOptions.idl [plain text]
typedef long COSEAlgorithmIdentifier;
[
Conditional=WEB_AUTHN,
] dictionary PublicKeyCredentialCreationOptions {
required PublicKeyCredentialRpEntity rp;
required PublicKeyCredentialUserEntity user;
required BufferSource challenge;
required sequence<PublicKeyCredentialParameters> pubKeyCredParams;
unsigned long timeout;
sequence<PublicKeyCredentialDescriptor> excludeCredentials = [];
AuthenticatorSelectionCriteria authenticatorSelection;
AttestationConveyancePreference attestation = "none";
AuthenticationExtensionsClientInputs extensions;
};
[
Conditional=WEB_AUTHN,
] dictionary PublicKeyCredentialEntity {
required DOMString name;
USVString icon;
};
[
Conditional=WEB_AUTHN,
] dictionary PublicKeyCredentialRpEntity : PublicKeyCredentialEntity {
DOMString id;
};
[
Conditional=WEB_AUTHN,
] dictionary PublicKeyCredentialUserEntity : PublicKeyCredentialEntity {
required BufferSource id;
required DOMString displayName;
};
[
Conditional=WEB_AUTHN,
] dictionary PublicKeyCredentialParameters {
required PublicKeyCredentialType type;
required COSEAlgorithmIdentifier alg;
};
[
Conditional=WEB_AUTHN,
] dictionary AuthenticatorSelectionCriteria {
AuthenticatorAttachment authenticatorAttachment;
boolean requireResidentKey = false;
UserVerificationRequirement userVerification = "preferred";
};
[
Conditional=WEB_AUTHN,
] enum AuthenticatorAttachment {
"platform",
"cross-platform"
};