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

aspxauth

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspxauth - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

CHANGELOG.md

37

package.json
{
"name": "aspxauth",
"version": "1.0.0",
"version": "1.1.0",
"description": "Verify and decrypt .NET's .ASPXAUTH cookie from node",
"main": "index.js",
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "babel src -d lib --source-maps",
"format": "jscs --fix ./",
"lint": "eslint --fix ./",
"pretest": "npm run format && npm run lint",
"test": "npm run cover",
"test:only": "mocha --require babel-register spec/*.spec.js",
"test:watch": "npm run test:only -- -w",
"cover": "nyc -r text-summary -r html -- npm run test:only",
"cover:show": "open \"file://$PWD/coverage/index.html\"",
"prepublish": "npm run build"
},

@@ -38,4 +50,21 @@ "author": "LeanKit",

"dependencies": {
"node-int64": "^0.4.0"
"bignum": "^0.12.5"
},
"devDependencies": {
"babel-cli": "^6.16.0",
"babel-eslint": "^7.0.0",
"babel-preset-node6": "^11.0.0",
"babel-register": "^6.16.3",
"chai": "^3.5.0",
"eslint": "^3.7.0",
"eslint-config-leankit": "^3.0.0",
"eslint-plugin-babel": "^3.3.0",
"jscs": "^3.0.7",
"mocha": "^3.1.2",
"nyc": "^8.3.0",
"sinon": "^1.17.6"
},
"nyc": {
"include": "src"
}
}
# aspxauth
Provides methods and middleware to assist in validating and decrypting .NET authorization tickets usually in the .ASPXAUTH cookie.
Provides utilities to assist in generating, validating and decrypting .NET authorization tickets (usually set in the .ASPXAUTH cookie) for interoperation with .NET authentication.

@@ -15,5 +15,11 @@ ## Setup

- `ticketVersion` (integer): if specified then will be used to validate the ticket version
- `validateExpiration` (bool): (default true) if false then decrypted tickets will be returned even if past their expiration
- `validateExpiration` (bool): (default `true`) if false then decrypted tickets will be returned even if past their expiration
- `encryptAsBuffer` (bool): (default `false`) if true, encrypt will return a buffer rather than a hex encoded string
- `defaultTTL` (integer): (default 24hrs) if provided is used as milliseconds from `issueDate` to expire generated tickets
- `defaultPersistent` (bool): (default `false`) if provided is used as default `isPersistent` value for generated tickets
- `defaultCookiePath` (string): (default "/") if provided is used as default `cookiePath` for generated tickets
```js
// Configure
var aspxauth = require( "aspxauth" )( {

@@ -27,2 +33,9 @@ validationMethod: "sha1",

// Generate encrypted cookie
var encryptedCookieValue = aspxauth.encrypt( {
name: "some.username@place.com",
customData: "other data"
} );
// Decrypt an existing cookie
var authTicket = aspxauth.decrypt( req.cookies[ ".ASPXAUTH" ] );

@@ -29,0 +42,0 @@ ```

.npmignore
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