Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
browserid-local-verify
Advanced tools
A node.js verification library for local verification of BrowserID assertions.
This repository contains a node.js library for local verification of BrowserID assertions. It is used by this standalone verifier.
The library has the following scope and features:
This library is targeted at robust local verification, to subsume all of the features required by mozilla's implementation of assertion verification in Persona. If you're looking for a clean and simple library appropriate for website use (using the verifier hosted by persona), see browserid-verify.
npm install persona-verifier-lib
var browserid = require('browserid-local-verify');
browserid.verify({
assertion: assertion,
audience: "http://example.com"
}, function(err, details) {
console.log(details);
});
var browserid = require('browserid-local-verify');
browserid.lookup({
domain: "mozilla.org"
}, function(err, details) {
// check err
console.log(details.authority);
console.log(details.pubKey);
console.log(details.delegationChain);
});
All functions accept configuration parameters documented below.
browserid.lookup({
httpTimeout: 5.0,
domain: "mozilla.org"
}, function(err, details) {
...
});
Or you can allocate a library instance. This allows you to specify configuration once at instantiation time. Any configuration parameters or function arguments may be specified a instantiation time and become the default for subsequently invoked functions:
var BrowserID = require('browserid-local-verify');
var b = new BrowserID({ httpTimeout: 20.0 });
b.lookup({ domain: "mozilla.org" }, function(err, details) {
// ...
});
The BrowserID class emits events:
var b = new BrowserID();
b.on('debug', function(msg) {
console.log('debug output:', msg);
});
b.on('metric', function(metric, value) {
console.log(metric + ":", value);
});
b.lookup("mozilla.org", function(err, details) {
// ...
});
FAQs
A node.js verification library for local verification of BrowserID assertions.
We found that browserid-local-verify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.