Provide a mechanism for the authenticator to pass information to the

client object by way of passing the auth response data up to the client
after the completion of the authentication phase. This allows information
loaded by an authenticator (like a user record) to make its way into the
real world.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@722 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-12-03 20:14:51 +00:00
parent 1c823ae349
commit a0ba41c31d
7 changed files with 83 additions and 61 deletions
@@ -1,9 +1,11 @@
//
// $Id: CrowdClient.java,v 1.3 2001/10/11 04:07:51 mdb Exp $
// $Id: CrowdClient.java,v 1.4 2001/12/03 20:14:51 mdb Exp $
package com.threerings.crowd.server;
import com.threerings.presents.net.AuthResponseData;
import com.threerings.presents.server.PresentsClient;
import com.threerings.crowd.data.BodyObject;
/**
@@ -12,9 +14,9 @@ import com.threerings.crowd.data.BodyObject;
*/
public class CrowdClient extends PresentsClient
{
protected void sessionWillStart ()
protected void sessionWillStart (AuthResponseData rdata)
{
super.sessionWillStart();
super.sessionWillStart(rdata);
// cast our client object to a body object
_bodobj = (BodyObject)_clobj;
@@ -26,9 +28,9 @@ public class CrowdClient extends PresentsClient
CrowdServer.mapBody(_username, _bodobj);
}
protected void sessionWillResume ()
protected void sessionWillResume (AuthResponseData rdata)
{
super.sessionWillResume();
super.sessionWillResume(rdata);
// nothing to do here presently
}