Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.