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

Verify and decrypt .NET's .ASPXAUTH cookie from node

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-43.24%
Maintainers
1
Weekly downloads
 
Created
Source

aspxauth

Provides methods and middleware to assist in validating and decrypting .NET authorization tickets usually in the .ASPXAUTH cookie.

Setup

The module must be initialized with configuration that corresponds to your .NET configuration and the machine key used to generate the auth ticket.

  • validationMethod (string): (default "sha1")
  • validationKey (string): hex encoded key to use for signature validation
  • decryptionMethod (string): (default "aes")
  • decryptionIV (string): hex encoded initialization vector (defaults to a vector of zeros)
  • decryptionKey (string): hex encoded key to use for decryption
  • 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
var aspxauth = require( "aspxauth" )( {
    validationMethod: "sha1",
    validationKey: process.env.DOTNET_VALIDATION_KEY,
    decryptionMethod: "aes",
    decryptionIV: process.env.DOTNET_DECRYPTION_IV,
    decryptionKey: process.env.DOTNET_DECRYPTION_KEY
} );

var authTicket = aspxauth.decrypt( req.cookies[ ".ASPXAUTH" ] );

Supported validation methods

  • sha1

Supported decryption methods

  • aes

Keywords

FAQs

Package last updated on 28 Sep 2016

Did you know?

Socket

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.

Install

Related posts

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