New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

carcass-auth

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carcass-auth - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

example/applications/session.js

9

History.md
0.2.0 / 2014-04-01
==================
* Added helpers/appendQS.
* Renamed helpers/unsignCookie to helpers/decodeSID.
* Moved to Wiredcraft.
* Moved examples to /example.
* Minor changes to coding styles and the test server.
0.1.0 / 2014-03-27

@@ -3,0 +12,0 @@ ==================

5

middlewares/cookieBearer.js

@@ -10,5 +10,4 @@ var carcass, debug, validValue;

module.exports = function(options) {
var cookieBearer, key;
var cookieBearer;
validValue(options.key);
key = options.key;
return cookieBearer = function(req, res, next) {

@@ -30,3 +29,3 @@ var parts, token, _ref, _ref1;

}
req.cookies[key] = token;
req.cookies[options.key] = token;
}

@@ -33,0 +32,0 @@ return next();

@@ -10,8 +10,7 @@ var carcass, sign, validValue;

module.exports = function(options) {
var encodeSID, secret;
var encodeSID;
validValue(options.secret);
secret = options.secret;
return encodeSID = function(req, res, next) {
if (req.sessionID) {
req.encodedSID = encodeURIComponent(sign(req.sessionID, secret));
req.encodedSID = encodeURIComponent(sign(req.sessionID, options.secret));
}

@@ -18,0 +17,0 @@ return next();

26

package.json
{
"name": "carcass-auth",
"version": "0.1.0",
"version": "0.2.0",
"description": "(Node.js) Authentication middlewares, in Carcass style.",
"author": {
"name": "devo.ps",
"email": "info@devo.ps",
"url": "https://github.com/devo-ps"
"name": "Wiredcraft",
"email": "info@wiredcraft.com",
"url": "http://wiredcraft.com"
},
"contributors": [],
"contributors": [
"Makara Wang"
],
"keywords": [

@@ -18,14 +20,16 @@ "carcass",

"type": "git",
"url": "https://github.com/devo-ps/carcass-auth.git"
"url": "https://github.com/Wiredcraft/carcass-auth.git"
},
"bugs": {
"url": "https://github.com/devo-ps/carcass-auth/issues"
"url": "https://github.com/Wiredcraft/carcass-auth/issues"
},
"homepage": "https://github.com/devo-ps/carcass-auth",
"homepage": "https://github.com/Wiredcraft/carcass-auth",
"dependencies": {
"carcass": "~0.10.1",
"cookie-signature": "~1.0.3",
"debug": "0.x"
"carcass": ">=0.10.1",
"cookie-signature": "1.x",
"debug": "*",
"qs": "0.x"
},
"devDependencies": {
"body-parser": "latest",
"carcass-config": "latest",

@@ -32,0 +36,0 @@ "carcass-monitor": "latest",

@@ -5,3 +5,3 @@ var debug = require('debug')('carcass:test');

var path = require('path');
var dir = path.resolve(__dirname, 'fixture');
var dir = path.resolve(__dirname, '../example');
var Monitor = require('carcass-monitor');

@@ -8,0 +8,0 @@ var supertest = require('supertest');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc