Warning This API ("Goldilocks") is not fully implemented. Follow Bug 4134 for more information on its progress.
Configure BrowserID by registering callbacks and setting display options.
Implementation Notes:Required Parameters:
- May only be called once. Subsequent calls must be ignored and should log an error.
- User input should be treated carefully — siteLogo may be an SVG, which opens an avenue for scripting.
onlogin:
function (assertion) { … }
onready:
function () { … }
siteName: String (Freeform text)
siteLogo: String (URL, absolute path, or data: URI)
backgroundColor: String (Hex #rgb or #rrggbb)
Prompt the user to select an email address and sign into the Relying Party.
Upon successful completion, a Backed Identity Assertion is passed to the onlogin callback registered in navigator.id.watch().
Implementation Notes:Behavior Customization (Optional):
- Must be called in response to direct user action, such as a click.
- Raises an error if called before
navigator.id.watch()has been invoked.
email: String (Email address)
oncancel: function () { … }