Identity/BrowserID: Difference between revisions

Jump to navigation Jump to search
Line 139: Line 139:
* <tt>example.com</tt> presents a login button with a JavaScript click handler.
* <tt>example.com</tt> presents a login button with a JavaScript click handler.
* when Alice clicks the login button, <tt>example.com</tt>'s click handler invokes
* when Alice clicks the login button, <tt>example.com</tt>'s click handler invokes
  navigator.id.get();
  navigator.id.request();
* Alice is presented with a user-agent dialog that lets her select which email to present to <tt>example.com</tt>.
* Alice is presented with a user-agent dialog that lets her select which email to present to <tt>example.com</tt>.
* If Alice chooses to cancel the transaction, a <tt>loginCancelled</tt> event is fired on the <tt>navigator.id</tt> object, which <tt>example.com</tt> can choose to listen for.
* If Alice chooses to cancel the transaction, a <tt>loginCancelled</tt> event is fired on the <tt>navigator.id</tt> object, which <tt>example.com</tt> can choose to listen for.
668

edits

Navigation menu