From 1e9a0220e69a62dd45b53753537fb4563e50412c Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 16 May 2007 17:35:27 +0000 Subject: Quite big change to how Sessions/circuits are Authenticated. Seems to work okay but needs a lot more testing. --- OpenSim.RegionServer/AuthenticateSessionsLocal.cs | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 OpenSim.RegionServer/AuthenticateSessionsLocal.cs (limited to 'OpenSim.RegionServer/AuthenticateSessionsLocal.cs') diff --git a/OpenSim.RegionServer/AuthenticateSessionsLocal.cs b/OpenSim.RegionServer/AuthenticateSessionsLocal.cs new file mode 100644 index 0000000..ca46355 --- /dev/null +++ b/OpenSim.RegionServer/AuthenticateSessionsLocal.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenSim.Framework.Types; + +namespace OpenSim +{ + public class AuthenticateSessionsLocal : AuthenticateSessionsBase + { + public AuthenticateSessionsLocal() + { + + } + + public void AddNewSession(Login loginData) + { + AgentCircuitData agent = new AgentCircuitData(); + agent.AgentID = loginData.Agent; + agent.firstname = loginData.First; + agent.lastname = loginData.Last; + agent.SessionID = loginData.Session; + agent.SecureSessionID = loginData.SecureSession; + agent.circuitcode = loginData.CircuitCode; + agent.BaseFolder = loginData.BaseFolder; + agent.InventoryFolder = loginData.InventoryFolder; + + this.AddNewCircuit(agent.circuitcode, agent); + } + } +} -- cgit v1.1