Skip to content

Commit

Permalink
Merge pull request #159 from w3c/vgb-credentialObjectKeep
Browse files Browse the repository at this point in the history
IDL cleanup: don't require callers to create Credential objects
  • Loading branch information
jcjones authored Aug 10, 2016
2 parents 9636ca2 + c79e21b commit 2b72ddf
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ The API is defined by the following Web IDL fragment.
};

dictionary CredentialOptions {
unsigned long timeoutSeconds;
sequence < Credential > excludeList;
WebAuthnExtensions extensions;
unsigned long timeoutSeconds;
sequence < CredentialDescription > excludeList;
WebAuthnExtensions extensions;
};

interface WebAuthnAssertion {
Expand All @@ -327,9 +327,9 @@ The API is defined by the following Web IDL fragment.
};

dictionary AssertionOptions {
unsigned long timeoutSeconds;
sequence < Credential > allowList;
WebAuthnExtensions extensions;
unsigned long timeoutSeconds;
sequence < CredentialDescription > allowList;
WebAuthnExtensions extensions;
};

dictionary WebAuthnExtensions {
Expand All @@ -347,7 +347,12 @@ The API is defined by the following Web IDL fragment.

interface Credential {
readonly attribute CredentialType type;
readonly attribute BufferSource id;
readonly attribute ArrayBuffer id;
};

dictionary CredentialDescription {
required CredentialType type;
required BufferSource id;
};
</pre>

Expand Down Expand Up @@ -682,6 +687,18 @@ by the caller to select a credential for use.
</div>


### Credential Descriptor (dictionary <dfn dictionary>CredentialDescription</dfn>) ### {#credential-dictionary}

This dictionary contains the attributes that are specified by a caller when referring to a credential as an input parameter to
the {{makeCredential()}} or {{getAssertion()}} method. It mirrors the fields of the {{Credential}} object returned by these methods.

<div dfn-for="CredentialDescription">
The <dfn>type</dfn> attribute contains the type of the credential the caller is referring to.

The <dfn>id</dfn> attribute contains the identifier of the credential that the caller is referring to.
</div>


### Cryptographic Algorithm Identifier (type {{AlgorithmIdentifier}}) ### {#alg-identifier}

A string or dictionary identifying a cryptographic algorithm and optionally a set of parameters for that algorithm. This type is
Expand Down

0 comments on commit 2b72ddf

Please sign in to comment.