diff --git a/index.html b/index.html index 3c96521..5a5b3f0 100644 --- a/index.html +++ b/index.html @@ -1424,7 +1424,7 @@
PasswordCredential's [[CollectFromCredentialStore]](options)
+ PasswordCredential's [[CollectFromCredentialStore]](origin, options)
PasswordCredential's [[Create]](options)
PasswordCredential's [[Store]](credential)
PasswordCredential from an HTMLFormElement
@@ -1549,7 +1549,7 @@ FederatedCredential's [[CollectFromCredentialStore]](options)
+ FederatedCredential's [[CollectFromCredentialStore]](origin, options)
FederatedCredential's [[Create]](options)
FederatedCredential's [[Store]](credential)
FederatedCredential from FederatedCredentialInit
@@ -1762,8 +1762,9 @@ Credential Internal Methods
Each interface object created for interfaces which inherit from Credential defines several internal methods that allow retrieval and storage of Credential objects:
[[CollectFromCredentialStore]](options) is called
- with a CredentialRequestOptions, and returns a set of Credential objects from the user
+ [[CollectFromCredentialStore]](origin, options) is called
+ with an origin and a CredentialRequestOptions, and returns
+ a set of Credential objects from the user
agent’s credential store that match the options provided. If no matching Credential objects are available, the returned set will be empty.
[[DiscoverFromExternalSource]](options) is called
- with a CredentialRequestOptions object. It returns a Credential if one can be
+ [[DiscoverFromExternalSource]](origin, options) is called
+ with an origin and a CredentialRequestOptions object.
+ It returns a Credential if one can be
returned given the options provided, null if no credential is available, or an error if
discovery fails (for example, incorrect options could produce a TypeError). If this
kind of Credential is only effective for a single use or a limited time, this
@@ -2141,11 +2143,13 @@ Let p be a new promise.
+Let origin be the current settings object's origin.
Run the following steps in parallel:
Let credentials be the result of collecting Credentials from the credential store, given options.
Let credentials be the result of collecting Credentials from the credential store, given origin and options.
credentials’ size is 1
settings’ origin does not require user mediation
+origin does not require user mediation
options is matchable a priori.
Assert: choice is an interface object.
Let result be the result of executing choice’s [[DiscoverFromExternalSource]](options), given options.
Let result be the result of executing choice’s [[DiscoverFromExternalSource]](origin, options), given origin and options.
If result is a Credential or null, resolve p with result.
Otherwise, reject p with result.
@@ -2187,7 +2191,8 @@Credentials from the credential storeGiven a CredentialRequestOptions (options), the user agent may collect Credentials from the credential store,
+
Given an origin (origin) and
+ a CredentialRequestOptions (options), the user agent may collect Credentials from the credential store,
returning a set of Credential objects stored by the user agent locally that match options’
filter. If no such Credential objects are known, the returned set will be empty:
Let r be the result of executing interface’s [[CollectFromCredentialStore]](options) internal method on options.
Let r be the result of executing interface’s [[CollectFromCredentialStore]](origin, options) internal method on origin and options.
If r is an exception, return r.
PasswordCredential objects are origin bound.
PasswordCredential's interface object inherits Credential's implementation of [[DiscoverFromExternalSource]](options), and defines its own implementation of [[CollectFromCredentialStore]](options), [[Create]](options), and [[Store]](credential).
PasswordCredential's interface object inherits Credential's implementation of [[DiscoverFromExternalSource]](origin, options), and defines its own implementation of [[CollectFromCredentialStore]](origin, options), [[Create]](options), and [[Store]](credential).
PasswordCredential's [[CollectFromCredentialStore]](options) [[CollectFromCredentialStore]](options) is called
- with a CredentialRequestOptions (options), and returns a set of Credential objects from
+
PasswordCredential's [[CollectFromCredentialStore]](origin, options) [[CollectFromCredentialStore]](origin, options) is called
+ with an origin (origin) and a CredentialRequestOptions (options),
+ and returns a set of Credential objects from
the credential store. If no matching Credential objects are available, the returned set
will be empty.
The credential is a PasswordCredential
The credential’s [[origin]] is the same origin as the current settings object's origin.
The credential’s [[origin]] is the same origin as origin.
PasswordCredential's [[Create]](options) FederatedCredential objects are origin bound.
FederatedCredential's interface object inherits Credential's implementation of [[DiscoverFromExternalSource]](options), and defines its own implementation of [[CollectFromCredentialStore]](options), [[Create]](options), and [[Store]](credential).
FederatedCredential's interface object inherits Credential's implementation of [[DiscoverFromExternalSource]](origin, options), and defines its own implementation of [[CollectFromCredentialStore]](origin, options), [[Create]](options), and [[Store]](credential).
Note: If, in the future, we teach the user agent to obtain authentication tokens on a user’s
- behalf, we could do so by building an implementation of [[DiscoverFromExternalSource]](options).
[[DiscoverFromExternalSource]](origin, options).
Every site should use the same identifier when referring to a specific federated identity provider. For example, Facebook Login shouldn’t be referred to as "Facebook" and "Facebook Login" and "FB" and "FBL" and "Facebook.com" @@ -2799,9 +2805,10 @@
https://accounts.google.com.
FederatedCredential's [[CollectFromCredentialStore]](options) [[CollectFromCredentialStore]](options) is called
- with a CredentialRequestOptions (options), and returns a set of Credential objects from
+
FederatedCredential's [[CollectFromCredentialStore]](origin, options) [[CollectFromCredentialStore]](origin, options) is called
+ with an origin (origin) and a CredentialRequestOptions (options),
+ and returns a set of Credential objects from
the credential store. If no matching Credential objects are available, the returned set
will be empty.
The credential is a FederatedCredential
The credential’s [[origin]] is the same origin as the current settings object's origin.
The credential’s [[origin]] is the same origin as origin.
If options["federated"]["providers"] exists, its value contains the credentials’s provider.
Define appropriate [[Create]](options), [[CollectFromCredentialStore]](options), [[DiscoverFromExternalSource]](options), and [[Store]](credential) methods on ExampleCredential's interface object. [[CollectFromCredentialStore]](options) is appropriate for credentials that remain effective forever and
- can therefore simply be copied out of the credential store, while [[DiscoverFromExternalSource]](options) is appropriate for credentials that need to be re-generated from a credential source.
ExampleCredential's [[CollectFromCredentialStore]](options) internal method is called
- with a CredentialRequestOptions object (options), and returns a set of Credential objects that match the options provided. If no matching Credential objects are
+ Define appropriate [[Create]](options), [[CollectFromCredentialStore]](origin, options), [[DiscoverFromExternalSource]](origin, options), and [[Store]](credential) methods on ExampleCredential's interface object. [[CollectFromCredentialStore]](origin, options) is appropriate for credentials that remain effective forever and
+ can therefore simply be copied out of the credential store, while [[DiscoverFromExternalSource]](origin, options) is appropriate for credentials that need to be re-generated from a credential source.
ExampleCredential's [[CollectFromCredentialStore]](origin, options) internal method is called
+ with an origin (origin) and a CredentialRequestOptions
+ object (options), and returns a set of Credential objects that match the options provided. If no matching Credential objects are
available, the returned set will be empty.