
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
bones-auth
Advanced tools
Provides base Auth
and AuthList
(model, collection) base
classes and authenticate
Connect middleware for implementing basic
session-based user login with Backbone.js, Bones and Express.
A basic User
model that extends Auth
is provided as an example and
starting point. Integration with bones-admin
through administrative views
is also available.
npm test
bones-auth.js
: client side javascript. Contains the mvc classes for any
client-side backbone.js
code to reference.bones-auth
: common js module for use with node.js. Includes server-side
specific overrides to mvc classes as well as other server-side code.Auth
Abstract model class. Extend it with your own model to create a model which can
be "authenticated". See the User
model for an example.
AuthList
Abstract collection class. Extend it for use with collections that contain
model classes inheriting from Auth
.
authenticate
middlewareRequire authenticate
connect middleware and add it as a middleware for
authenticating models. Automatically adds and manages the Connect session
middleware -- session cookies will only be sent and active when authenticating
and/or an authenticated session already exists. Allows for sane proxy caching.
var express = require('express'),
server = express.createServer(),
secret = 'MySecretKey';
// Express middleware.
server.use(express.bodyDecoder());
server.use(express.cookieDecoder());
// Pass secret key to Bones for CSRF protection.
require('bones').Bones(server, { secret: secret });
// Require bones-auth to use authenticate middleware.
// Handles authentication requests to `/api/Authenticate`.
var authenticate = require('bones-auth').authenticate;
server.use(authenticate({ secret: secret });
FAQs
User model with password based authentication for Bones.
We found that bones-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.