{"id":25470293,"url":"https://github.com/thinkphp/browserid-mootools","last_synced_at":"2025-11-04T18:30:33.513Z","repository":{"id":2756457,"uuid":"3754260","full_name":"thinkphp/browserID-MooTools","owner":"thinkphp","description":"This is a MooTools client library for the BrowserID Protocol.","archived":false,"fork":false,"pushed_at":"2012-03-19T09:08:39.000Z","size":110,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T14:54:24.099Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thinkphp.ro/apps/js-hacks/browserID-MooTools/Demos/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-18T10:38:03.000Z","updated_at":"2023-09-28T10:20:03.000Z","dependencies_parsed_at":"2022-08-26T19:11:15.125Z","dependency_job_id":null,"html_url":"https://github.com/thinkphp/browserID-MooTools","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FbrowserID-MooTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FbrowserID-MooTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FbrowserID-MooTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FbrowserID-MooTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkphp","download_url":"https://codeload.github.com/thinkphp/browserID-MooTools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239437444,"owners_count":19638498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-18T08:32:49.832Z","updated_at":"2025-11-04T18:30:33.463Z","avatar_url":"https://github.com/thinkphp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"BrowserID\n=========\n\nThis is a MooTools client library for the BrowserID Protocol. BrowserID is a new way for users to log into web sites using their email address. \nIt 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. \nInstead of a new username, it uses your email address as you identity which allows it to be descentralized since anyone can send you an\nemail verification message.\n\n![Screenshot](https://developer.mozilla.org/@api/deki/files/6051/=browserid-enter-email.png)\n\nHow to Use\n----------\n\nInclude the BrowserID include.js library in your site by adding the following script tag to your pages:\n\n        \u003cscript src=\"https://browserid.org/include.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"mootools.js\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"browserID.js.js\"\u003e\u003c/script\u003e\n\nAdding a pretty button:\n\n        #HTML\n        \u003cbutton id=\"login\"\u003e\u003cimg src=\"https://browserid.org/i/sign_in_green.png\" alt=\"sign in with browser ID\"\u003e\u003c/button\u003e\n\nWhen DOM is ready:\n\n        #JS\n        window.addEvent('domready', function(){\n\n                $('login').addEvent('click',function(){\n                   navigator.id.getVerifiedEmail(function(assertion){\n                            if(assertion) {\n                              //got an assertion, now send it up to the server for verification\n                               verify(assertion)\n                            } else {\n                               alert(\"I still don't know you\")\n                            }\n                   })\n               })\n        })\n\n\n         function verify(assertion) {\n\n             var browserid = new BrowserID(assertion, {\n\n                             onComplete: function(response){\n\n                                 //if the server successfully verifies the assertion we\n                                 //updating the UI by calling 'loggedIn()'\n                                 if(response.status == 'okay') {\n\n                                       loggedIn(response.email)\n\n                                 //otherwise we handle the login failure by calling 'failure()'\n                                 } else {\n                                       failure(response)\n                                 }    \n                             }\n             })\n         }\n\n         function loggedIn(email) {\n             //do stuff with email\n             var p = new Element('p').set('text','Logged In as: ' + email)\n             $('login').parentNode.replaceChild(p,$('login'))\n         }\n\n         function failure(f) {\n             //do stuff with failure\n             alert('Failure reason: ' + f.reason) \n         }\n\nReferences:\n\n- https://browserid.org/\n- https://developer.mozilla.org/en/BrowserID\n- https://browserid.org/developers\n- http://identity.mozilla.com/post/7616727542/introducing-browserid-a-better-way-to-sign-in\n- http://identity.mozilla.com/post/17207734786/id-provider-support-now-live-on-browserid\n- https://github.com/mozilla/browserid/wiki\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fbrowserid-mootools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkphp%2Fbrowserid-mootools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fbrowserid-mootools/lists"}