{"id":25470337,"url":"https://github.com/thinkphp/browserid","last_synced_at":"2025-11-04T18:30:34.493Z","repository":{"id":2755695,"uuid":"3753443","full_name":"thinkphp/browserID","owner":"thinkphp","description":"BrowserID Library verifier for PHP5","archived":false,"fork":false,"pushed_at":"2012-03-18T15:52:13.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T14:54:23.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thinkphp.ro/apps/php-hacks/browserID/cURL/","language":"PHP","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-18T07:22:55.000Z","updated_at":"2014-02-26T09:51:05.000Z","dependencies_parsed_at":"2022-08-26T17:53:04.057Z","dependency_job_id":null,"html_url":"https://github.com/thinkphp/browserID","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FbrowserID","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FbrowserID/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FbrowserID/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FbrowserID/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkphp","download_url":"https://codeload.github.com/thinkphp/browserID/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239437518,"owners_count":19638510,"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:57.790Z","updated_at":"2025-11-04T18:30:34.460Z","avatar_url":"https://github.com/thinkphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"BrowserID\n=========\n\nBrowserID 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, \nwithout 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 \ndescentralized since anyone can send you an email verification message.\n\n![Screenshot](https://developer.mozilla.org/@api/deki/files/6051/=browserid-enter-email.png)\n\n![Screenshot](https://developer.mozilla.org/@api/deki/files/6040/=browserid-remote-verify.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       #head\n       \u003cscript src=\"https://browserid.org/include.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\n\nAdding pretty button:\n\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       var $ = function(id){return document.getElementById(id);},\n           login = $(\"login\")\n\n       addEvent(login,'click',function(){\n\n           navigator.id.getVerifiedEmail(function(assertion) {\n\n                if(assertion) {\n\n                   verify(assertion);\n\n                } else {\n\n                   alert('I still don\\'t know you...');\n                }\n           })\n\n       },false)\n\n       function verify(assertion) {\n\n         var params = 'assertion=' + assertion,\n\n             url = 'login.php'\n\n             asyncRequest.REQUEST(\"POST\",url,function(data){\n\n                  var response = JSON.parse(data),\n\n                      p = document.createElement('p')\n\n                      p.innerHTML = 'Welcome, ' + response.email\n\n                      butt.parentNode.replaceChild(p,login)\n\n                      $('result').innerHTML = 'WoW, I know you!'\n\n             }, params)\n       }\n\n       #PHP\n       require_once('login.class.php');\n \n       $browserID = new BrowserID($_SERVER['HTTP_HOST'], $_POST['assertion']);\n\n       if($browserID-\u003everify_assertion()) {\n \n             echo json_encode(array('status'=\u003e'okay', 'email'=\u003e$browserID-\u003egetEmail()));\n\n       } else {\n\n             echo json_encode(array('status'=\u003e'failure'));\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fbrowserid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkphp%2Fbrowserid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fbrowserid/lists"}