The Credential Management API lets a website store and retrieve user, federated, and public key credentials. These capabilities allow users to sign in without typing passwords, see the federated account they used to sign in to a site, and resume a session without the explicit sign-in flow of an expired session.
This API lets websites interact with a user agent’s password system so that websites can deal in a uniform way with site credentials and user agents can provide better assistance with the management of their credentials. For example, user agents have a particularly hard time dealing with federated identity providers or esoteric sign-in mechanisms that use more than just a username and password. To address these problems, the Credential Management API provides ways for a website to store and retrieve different types of credentials. This give users capabilities such as seeing the federated account they used to sign on to a site, or resuming a session without the explicit sign-in flow of an expired session.
This API is restricted to top-level contexts. Calls to
element will resolve without effect.
Later version of the spec allow credentials to be retrieved from a different subdomain. For example, a password stored in
may be used to log in to
. To take advantage of this, a password must be explicitly stored by calling
. This is sometimes referred to as public suffix list (PSL) matching; however the spec only
using PSL to determine the effective scope of a credential. It does not require it. Hence browsers may vary in their implementation.
|Credential Management Level 1||工作草案||初始定义。|
|Web Authentication: An API for accessing Public Key Credentials Level 1||Recommendation||初始定义。|