From 576614a5698bd7cb493c02d94b0ac13425f561fb Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 24 Feb 2005 18:23:47 +0000 Subject: [PATCH 1/1] We're not using authentication past Jabber anymore. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@107 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/opensrf_app_session.js | 14 +++++++------- src/javascript/opensrf_domain_object.js | 5 +++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/javascript/opensrf_app_session.js b/src/javascript/opensrf_app_session.js index 892a958..882fc0c 100644 --- a/src/javascript/opensrf_app_session.js +++ b/src/javascript/opensrf_app_session.js @@ -177,8 +177,12 @@ AppSession.delete_session = function(session_id) { /** Builds a new session. * @param remote_service The remote service we want to make REQUEST's of */ -function AppSession( username, password, remote_service ) { +function AppSession( remote_service ) { + if (arguments.length == 3) { + // it used to be AppSession( username, password, remote_service ) + remote_service = arguments[2]; + } /** Our logger object */ this.logger = new Logger(); @@ -189,7 +193,7 @@ function AppSession( username, password, remote_service ) { /** Our session id */ this.session_id = new Date().getTime() + "" + random_num; - this.auth = new userAuth( username, password ); + //this.auth = new userAuth( username, password ); /** Our AppRequest queue */ this.request_queue = new Array(); @@ -459,11 +463,7 @@ AppSession.prototype.send = function( msg_type, thread_trace, payload ) { this.queue_wait(0); var msg; - if( msg_type == oilsMessage.CONNECT ) { - msg = new oilsMessage( msg_type, AppSession.PROTOCOL, this.auth ); - } else { - msg = new oilsMessage( msg_type, AppSession.PROTOCOL ); - } + msg = new oilsMessage( msg_type, AppSession.PROTOCOL ); msg.setThreadTrace( thread_trace ); diff --git a/src/javascript/opensrf_domain_object.js b/src/javascript/opensrf_domain_object.js index bbcc576..209b4c1 100644 --- a/src/javascript/opensrf_domain_object.js +++ b/src/javascript/opensrf_domain_object.js @@ -200,7 +200,7 @@ oilsMessage.prototype.constructor = oilsMessage; oilsMessage.prototype.baseClass = DomainObject.prototype.constructor; /** Core XML object for message passing */ -function oilsMessage( type, protocol, user_auth ) { +function oilsMessage( type, protocol ) { if( !( type && protocol) ) { type = oilsMessage.CONNECT; @@ -221,7 +221,8 @@ function oilsMessage( type, protocol, user_auth ) { this.add( new domainObjectAttr( "threadTrace", 0 ) ); this.add( new domainObjectAttr( "protocol", protocol ) ); - if( user_auth ) { this.add( user_auth ); } + // user_auth used to be a parameter for oilsMessage + //if( user_auth ) { this.add( user_auth ); } } -- 2.43.2