backside-proxy
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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", |
8941
9
217