navigator.id

« DOM Referenz

Kein Standard
Diese Funktion entspricht nicht dem Standard und ist nicht Teil der Standardisierung. Diese Funktion darf nicht in Webseiten die via das Internet zugänglich sind, benutzt werden: sie wird nicht für alle Nutzer funktionieren. Es kann zu umfangreichen Inkompatibilitäten zwischen verschiedenen Implementierungen kommen und die Funktionsweise oder Eigenschaften könnten in der Zunkunft verändert werden.

Note: Support for this functionality is not yet built into any browsers. Websites using Persona must include the polyfill library hosted at https://login.persona.org/include.js in their pages.

Summary

The BrowserID protocol defines a new id property on the window.navigator object, through which it exposes the BrowserID API. This API has gone through several significant revisions. Each generation is listed separately below.

The "Observer" API (Current)

The Observer API introduces much-requested features, such as an improved post-verification experience for first-time users, automatic persistent logins, and easier integration with native applications.

navigator.id.watch()
Registers callbacks to be invoked when a user logs into or out of a website.
navigator.id.request()
Requests a signed identity assertion from the user.
navigator.id.logout()
Logs the user out of a website and prevents the onlogin action from automatically firing on their next visit.

Users with 3rd party cookies disabled may experience problems logging in using the Observer API as detailed in issue 2999.

The "Callback" API (Current)

The Callback API was introduced in November 2011. It improved upon the initial API by allowing options to be passed to navigator.id.get() and offering experimental support for BrowserID-managed persistent sessions.

navigator.id.get()
Gets the user's BrowserID in a signed assertion.

The "VerifiedEmail" API (Deprecated)

The VerifiedEmail API was BrowserID's first API. It was deprecated at the end of 2011.

navigator.id.getVerifiedEmail()
Gets the user's BrowserID in a signed assertion. This method is deprecated; navigator.id.get() is backwards compatible and can be used instead.

Schlagwörter des Dokuments und Mitwirkende

Mitwirkende an dieser Seite: Timmi
Zuletzt aktualisiert von: Timmi,