orator-session
Advanced tools
Comparing version 1.0.11 to 1.0.12
{ | ||
"name": "orator-session", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Session state and authentication manager for Orator Restful web API server.", | ||
@@ -5,0 +5,0 @@ "main": "source/Orator-Session.js", |
@@ -213,2 +213,12 @@ /** | ||
var tmpSessionID = 'SES'+tmpUUID; | ||
var tmpNewSessionData = formatEmptyUserPacket(tmpSessionID, tmpUUID); | ||
if (pRequest.SessionOverrideData) | ||
{ | ||
_Log.info('SessionOverride data is specified.'); | ||
tmpSessionID = pRequest.SessionOverrideData.SessionID; | ||
tmpNewSessionData = pRequest.SessionOverrideData; | ||
} | ||
_Log.info('Creating a new session', {SessionID:tmpSessionID}); | ||
@@ -218,4 +228,2 @@ | ||
// We store this much to prevent roundtrips to the database each request | ||
var tmpNewSessionData = formatEmptyUserPacket(tmpSessionID, tmpUUID); | ||
var tmpNewSessionDataString = JSON.stringify(tmpNewSessionData); | ||
@@ -524,2 +532,3 @@ | ||
//remoteAuthenticator: remoteAuthenticator, | ||
createSession: createSession, | ||
checkSession: checkSession, | ||
@@ -526,0 +535,0 @@ deAuthenticateUser: deAuthenticateUser, |
25760
777