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

backside-proxy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backside-proxy - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

13

lib/proxy.js

@@ -42,2 +42,12 @@

var password = frame.headers.passcode
// rewrite headers
frame.headers.login = STOMP_USERNAME
frame.headers.passcode = STOMP_PASSWORD
// login state doesn't indicate if anonymous or real user, simply that
// connect frame was sent
session.login = true
// if no username is sent, assume anonymous login
if (!username) return cb(null, frame)
api.loadUser(username, password, function(err, isValid, user) {

@@ -48,5 +58,2 @@ if (err) return cb(err)

//translate the headers to be the actual login headers for STOMP
frame.headers.login = STOMP_USERNAME
frame.headers.passcode = STOMP_PASSWORD
session.login = true
session.user = user

@@ -53,0 +60,0 @@ cb(null, frame)

{
"name": "backside-proxy",
"version": "0.0.1",
"version": "0.0.2",
"description": "A websocket/STOMP proxy that supports custom auth and intercepting certain operations for backside",

@@ -5,0 +5,0 @@ "main": "index.js",

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