
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
node-matrix-auth
Advanced tools
Authentication with Squiz Matrix from Node.js
var matrixAuth = require('node-matrix-auth');
var auth = matrixAuth({
auth: 'user:pass',
admin: 'http://mysource.matrix/_admin',
wsdl: 'http://mysource.matrix/_web_services/soap?wsdl'
});
auth.on('error', function(err) {
console.error(err);
});
auth.on('success', function(data) {
console.log(data);
});
var matrixAuth = require('node-matrix-auth');
The opts object is used to pass configuration to matrixAuth.
opts.auth: The user credentials you wish to authenticate with in the form of 'user:pass'.opts.admin: The Admin URI of a Matrix system.opts.wsdl: The URI of a configured SOAP API.The optional callback cb(err, data) is called when either the error or success event is fired.
The private method auth._ready returns true if authentication was successful.
matrixAuth returns an instance of EventEmitter, and exposes the following events:
The success event returns a JavaScript Object with the following properties:
data.auth: The user authentication informationdata.admin: The result of passing opts.admin into url.parsedata.wsdl: The result of passing opts.wsdl into url.parsedata.nonce: The nonce token used to sign certain requests to Matrix.data.cookie: The session cookie used to sign requests to Matrix.data.sessionId: The ID assigned to the authenticated session.data.sessionKey: The key assigned to the authenticated session.The error event returns an Error object and is fired if an error occurs during authentication.
LoginUser service enablednpm install node-matrix-auth
MIT
FAQs
Authentication with Squiz Matrix from Node.js
We found that node-matrix-auth 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.