
Security News
Free Certified Patch for Critical Rails Active Storage Vulnerability
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.
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 testbones-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.AuthAbstract model class. Extend it with your own model to create a model which can
be "authenticated". See the User model for an example.
AuthListAbstract 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.
The npm package bones-auth receives a total of 0 weekly downloads. As such, bones-auth popularity was classified as not popular.
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.

Security News
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.

Security News
/Threat Research
A malicious Ruby gem runs a credential-stealing worm during installation, poisons AI coding tools, and can wipe files when a stolen GitHub token is revoked.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.