Mozilla Persona

  • 版本网址缩略名: Persona
  • 版本标题: Persona
  • 版本 id: 311261
  • 创建于:
  • 创建者: ziyunfei
  • 是否是当前版本?
  • 评论

修订内容

Stay in touch or get help!

Follow our blog, join our mailing list, or find us in #identity on IRC.

Mozilla Persona is a completely decentralized and secure authentication system for the web based on the open BrowserID protocol. To ensure that Persona works everywhere and for everyone, Mozilla currently operates a small suite of optional, centralized services related to Persona.

Why should you and your site use Persona?

  1. Persona completely eliminates site-specific passwords, freeing users and websites from the burden of creating, managing, and securely storing passwords.
  2. Persona is easy to use. With just two clicks a Persona user can sign into a new site like Voost or The Times Crossword, bypassing the friction associated with account creation.
  3. Persona is easy to implement. Developers can add Persona to a site in a single afternoon.
  4. Best of all, there's no lock-in. Developers get a verified email address for all of their users, and users can use any email address with Persona.
  5. Persona is built on the BrowserID protocol. Once popular browser vendors implement BrowserID, they will no longer need to rely on Mozilla to log in.

Read on to get started!

Note: Persona is in active development. Follow our blog to learn about new features, or join our mailing list and offer your feedback!

Using Persona on your site

Getting started

Why Persona?
Learn about reasons to support Persona on your site, and how it compares to other identity and authentication systems.
Quick setup
A quick walkthrough showing how to add Persona to your website.

Persona API reference

The navigator.id API reference
Reference for the navigator.id object, which web developers can use to integrate Persona into sites.
Verification API reference
Reference for the remote verification API hosted at https://verifier.login.persona.org/verify.

Guides

Security considerations
Practices and techniques to make sure your Persona deployment is secure.
Browser compatibility
Learn exactly which browsers support Persona.
Internationalization
Learn how Persona handles different languages.

Resources

Libraries and plugins
Find a drop-in library for your favorite programming language, web framework, blog, or content management system.
The Persona cookbook
Example source code for Persona sites. Includes snippets in PHP, Node.JS, and more.
Branding resources
Sign in buttons and other graphics to help present Persona to your users.

 

Information for Identity Providers

If you're an email provider or another identity-providing service, check out the links below to learn about becoming a Persona Identity Provider.

IdP Overview
A high level view of Persona Identity Providers.
Implementing an IdP
A detailed guide to the technical details of becoming an IdP.
Development tips
A set of tips and tricks useful while developing a new Identity Provider.
.well-known/browserid
An overview of the structure and purpose of the .well-known/browserid file, which IdPs use to advertise their support for the protocol.

The Persona Project

Glossary
BrowserID and Persona terminology defined.
FAQ
Answers to common questions.
Protocol overview
A mid-level technical overview of the underlying BrowserID protocol.
Crypto
A look at the cryptographic concepts behind Persona and BrowserID.
The Spec
Deep technical details live here.
The Persona Website
To get Persona going, we're hosting three services at https://login.persona.org: a fallback Identity Provider, a portable implementation of the {{ domxref("navigator.id") }} APIs, and an identity assertion verification service.
The Persona Source Code
The code behind the Persona website lives in a repository on GitHub. Patches welcome!

 

修订版来源

<div class="callout-box">
  <p><strong>Stay in touch or get help!</strong></p>
  <p>Follow <a class="external" href="http://identity.mozilla.com/" title="http://identity.mozilla.com/">our blog</a>, join <a class="link-https" href="https://lists.mozilla.org/listinfo/dev-identity" title="https://lists.mozilla.org/listinfo/dev-identity">our mailing list</a>, or find us in <a class="link-irc" href="irc://irc.mozilla.org/identity" title="irc://irc.mozilla.org/identity">#identity</a> on <a class="link-https" href="https://wiki.mozilla.org/IRC" title="https://wiki.mozilla.org/IRC"> IRC</a>.</p>
</div>
<p><a class="link-https" href="https://www.mozilla.org/zh-CN/persona/" title="https://www.mozilla.org/zh-CN/persona/">Mozilla Persona</a> is a completely decentralized and secure authentication system for the web based on the open BrowserID protocol. To ensure that Persona works everywhere and for everyone, Mozilla currently operates a small suite of <a href="/zh-CN/docs/Persona/Bootstrapping_Persona" title="/zh-CN/docs/Persona/Bootstrapping_Persona">optional, centralized services</a> related to Persona.</p>
<p>Why should you and your site use Persona?</p>
<ol>
  <li><strong>Persona completely eliminates site-specific passwords</strong>, freeing users and websites from the burden of creating, managing, and securely storing passwords.</li>
  <li><strong>Persona is easy to use.</strong> With just two clicks a Persona user can sign into a new site like <a href="http://voo.st" title="http://voo.st">Voost</a> or <a href="http://crossword.thetimes.co.uk/" title="http://crossword.thetimes.co.uk/">The Times Crossword</a>, bypassing the friction associated with account creation.</li>
  <li><strong>Persona is easy to implement</strong><strong>. </strong>Developers can add Persona to a site in a single afternoon.</li>
  <li>Best of all, there's <strong>no lock-in</strong>. Developers get a verified email address for all of their users, and users can use any email address with Persona.</li>
  <li><strong>Persona is built on the BrowserID protocol.&nbsp;</strong>Once popular browser vendors implement BrowserID, <b>they will no longer need to rely on Mozilla to log in.</b></li>
</ol>
<p>Read on to get started!</p>
<div class="note">
  <strong>Note:</strong> Persona is in active development. Follow <a class="external" href="http://identity.mozilla.com/" title="http://identity.mozilla.com/">our blog</a> to learn about new features, or join <a class="link-https" href="https://lists.mozilla.org/listinfo/dev-identity" title="https://lists.mozilla.org/listinfo/dev-identity">our mailing list</a> and offer your feedback!</div>
<h2 id="Using_Persona_on_your_site">Using Persona on your site</h2>
<table class="topicpage-table">
  <tbody>
    <tr>
      <td>
        <h3 id="Getting_started">Getting started</h3>
        <dl>
          <dt>
            <a href="/zh-CN/docs/Persona/Why_Persona" title="zh-CN/BrowserID/Why_BrowserID">Why Persona?</a></dt>
          <dd>
            Learn about reasons to support Persona on your site, and how it compares to other identity and authentication systems.</dd>
          <dt>
            <a href="/zh-CN/Persona/Quick_Setup" title="BrowserID/Quick setup">Quick setup</a></dt>
          <dd>
            A quick walkthrough showing how to add Persona to your website.</dd>
        </dl>
      </td>
      <td>
        <h3 id="Persona_API_reference">Persona API reference</h3>
        <dl>
          <dt>
            <a href="/zh-CN/DOM/navigator.id" title="navigator.id">The navigator.id API reference</a></dt>
          <dd>
            Reference for the <code>navigator.id</code> object, which web developers can use to integrate Persona into sites.</dd>
          <dt>
            <a href="/zh-CN/Persona/Remote_Verification_API" title="zh-CN/BrowserID/Remote_Verification_API">Verification API reference</a></dt>
          <dd>
            Reference for the remote verification API hosted at <code>https://verifier.login.persona.org/verify</code>.</dd>
        </dl>
      </td>
    </tr>
    <tr>
      <td>
        <h3 id="Guides">Guides</h3>
        <dl>
          <dt>
            <a href="/zh-CN/Persona/Security_Considerations" title="BrowserID/Security considerations">Security considerations</a></dt>
          <dd>
            Practices and techniques to make sure your Persona deployment is secure.</dd>
          <dt>
            <a href="/zh-CN/Persona/Browser_compatibility" title="/Browser_compatibility">Browser compatibility</a></dt>
          <dd>
            Learn exactly which browsers support Persona.</dd>
          <dt>
            <a href="/zh-CN/Persona/Internationalization" title="/Internationalization">Internationalization</a></dt>
          <dd>
            Learn how Persona handles different languages.</dd>
        </dl>
      </td>
      <td>
        <h3 id="Resources">Resources</h3>
        <dl>
          <dt>
            <a class="link-https" href="https://github.com/mozilla/browserid/wiki/Persona-Libraries" title="https://github.com/mozilla/browserid/wiki/BrowserID-Libraries">Libraries and plugins</a></dt>
          <dd>
            Find a drop-in library for your favorite programming language, web framework, blog, or content management system.</dd>
          <dt>
            <a class="link-https" href="https://github.com/mozilla/browserid-cookbook" title="https://github.com/mozilla/browserid-cookbook">The Persona cookbook</a></dt>
          <dd>
            Example source code for Persona sites. Includes snippets in PHP, Node.JS, and more.</dd>
          <dt>
            <a href="/zh-CN/docs/persona/branding" title="/zh-CN/docs/persona/branding">Branding resources</a></dt>
          <dd>
            Sign in buttons and other graphics to help present Persona to your users.</dd>
        </dl>
      </td>
    </tr>
  </tbody>
</table>
<p>&nbsp;</p>
<table class="topicpage-table">
  <tbody>
    <tr>
      <td>
        <h2 id="Information_for_Identity_Providers">Information for Identity Providers</h2>
        <p>If you're an email provider or another identity-providing service, check out the links below to learn about becoming a Persona Identity Provider.</p>
        <dl>
          <dt>
            <a href="/zh-CN/docs/Persona/Identity_Provider_Overview" title="IdP">IdP Overview</a></dt>
          <dd>
            A high level view of Persona Identity Providers.</dd>
          <dt>
            <a href="/zh-CN/Persona/Implementing_a_Persona_IdP" title="Guide to Implementing a Persona IdP">Implementing an IdP</a></dt>
          <dd>
            A detailed guide to the technical details of becoming an IdP.</dd>
          <dt>
            <a href="/zh-CN/Persona/IdP_Development_tips" title="Developer tips">Development tips</a></dt>
          <dd>
            A set of tips and tricks useful while developing a new Identity Provider.</dd>
          <dt>
            <a href="/zh-CN/docs/Persona/.well-known-browserid" title="https://developer.mozilla.org/zh-CN/docs/Persona/.well-known-browserid">.well-known/browserid</a></dt>
          <dd>
            An overview of the structure and purpose of the <code>.well-known/browserid</code> file, which IdPs use to advertise their support for the protocol.</dd>
        </dl>
      </td>
      <td>
        <h2 id="The_Persona_Project">The Persona Project</h2>
        <dl>
          <dt>
            <a href="/zh-CN/Persona/Glossary" title="navigator.id">Glossary</a></dt>
          <dd>
            BrowserID and Persona terminology defined.</dd>
          <dt>
            <a href="/zh-CN/Persona/FAQ" title="zh-CN/BrowserID/FAQ">FAQ</a></dt>
          <dd>
            Answers to common questions.</dd>
          <dt>
            <a href="/zh-CN/Persona/Protocol_Overview" title="BrowserID/Protocol overview">Protocol overview</a></dt>
          <dd>
            A mid-level technical overview of the underlying BrowserID protocol.</dd>
          <dt>
            <a href="/zh-CN/persona/Crypto" title="MDN">Crypto</a></dt>
          <dd>
            A look at the cryptographic concepts behind Persona and BrowserID.</dd>
          <dt>
            <a class="link-https" href="https://github.com/mozilla/id-specs/blob/master/browserid/index.md" title="https://github.com/mozilla/id-specs/blob/master/browserid/index.md">The Spec</a></dt>
          <dd>
            Deep technical details live here.</dd>
          <dt>
            <a href="/Persona/Bootstrapping_Persona" title="zh-CN/BrowserID/Bootstrapping_BrowserID">The Persona Website</a></dt>
          <dd>
            To get Persona going, we're hosting three services at <a class="link-https" href="https://login.persona.org" rel="freelink">https://login.persona.org</a>: a fallback Identity Provider, a portable implementation of the {{ domxref("navigator.id") }} APIs, and an identity assertion verification service.</dd>
          <dt>
            <a href="https://github.com/mozilla/browserid">The Persona Source Code</a></dt>
          <dd>
            The code behind the Persona website lives in a repository on GitHub. Patches welcome!</dd>
        </dl>
      </td>
    </tr>
  </tbody>
</table>
<p>&nbsp;</p>
恢复到这个版本