Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
browserid-verifier
Advanced tools
WARNING: This is alpha quality code, and shouldn't really be used in production quality systems until this notice is removed.
A nodejs library for validating BrowserID Assertions.
BrowserID is a email based distributed authentication system for the web, supported by Mozilla. Using BrowserID you can allow users to sign into your website with a "verified email address" rather than a traditional username and password. For users sign-in is easier, and for site maintainers it becomes unnecessary to implement password storage and email verification functions.
This library verifies BrowserID assertions on a node server locally. The only network requests it makes are to obtain public keys for identity providers, and these keys are aggressively cached. This library is preferred over the mozilla BrowserID service because it can reduce your external dependencies and decrease network latency during sign in. And it's really easy to use.
First, check out the full example client and server in example/
.
Just npm install && example/main.js
, then visit
http://127.0.0.1:8080
in your browser.
To install:
npm install browserid-verifier
Then implement client code that calls includes
https://browserid.org/include.js
and calls
navigator.id.getVerifiedEmail()
when a user clicks your sign-in
button. Send the assertion returned from that function up to your
server, and verify it in node:
var browseridVerify = require('browserid-verifier');
browseridVerify({
assertion: theAssertion,
audience: "http://mysite.com"
}, function (err, r) {
// if err is non-falsey, then something went wrong.
// otherwise, r looks like this:
//
// { email: 'lloyd@mozilla.com',
// audience: 'http://127.0.0.1:8080',
// expires: Fri, 25 Nov 2011 19:55:36 GMT,
// issuer: 'browserid.org' }
//
});
That is all.
FAQs
A node library to verify assertions
The npm package browserid-verifier receives a total of 0 weekly downloads. As such, browserid-verifier popularity was classified as not popular.
We found that browserid-verifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.