GithubHelp home page GithubHelp logo

mackrauss / browserid-jquery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from altryne/browserid-jquery

0.0 3.0 0.0 79 KB

This is a jquery plugin for the mozilla personas api.

Home Page: http://htmlpreview.github.com/?https://github.com/altryne/browserID-jQuery/blob/master/Demos/index.html

browserid-jquery's Introduction

BrowserID

This is a jQuery client library for the BrowserID Protocol. BrowserID is a new way for users to log into web sites using their email address. It aims to provide a secure way of proving your identity to servers across the internet, without having to create separate usernames and passwords each time. Instead of a new username, it uses your email address as you identity which allows it to be descentralized since anyone can send you an email verification message.

Screenshot

#DEMO How to Use

###Include the BrowserID include.js library in your site by adding the following script tags to your pages:

<script>navigator.id || document.write('<script src="https://login.persona.org/include.js"><\/script>')</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="jquery.browserid.js"></script>

###Adding a login button:

<button id="login">LOGIN</button>

###on DOM ready initiate

$('<your button element>').browserid([options]);

Arguments:

  • options object - The options for the BrowserID instance.

####Example options :

   var options = {
    onlogin : function(response){ ... },
    onfail : function(response){ ... },
    onlogout : function(response){ ... },
    server : 'login.php' /* this is the verifier server url - attached in login.php */
}

References:

browserid-jquery's People

Contributors

altryne avatar briancalderon avatar thinkphp avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.