diff options
author | MW | 2007-05-16 17:35:27 +0000 |
---|---|---|
committer | MW | 2007-05-16 17:35:27 +0000 |
commit | 1e9a0220e69a62dd45b53753537fb4563e50412c (patch) | |
tree | bfe79152761b164dbd437b60dc025aa1f0c8c3fc /OpenSim.RegionServer/AuthenticateSessionsLocal.cs | |
parent | * removed unused new-login.dat (diff) | |
download | opensim-SC_OLD-1e9a0220e69a62dd45b53753537fb4563e50412c.zip opensim-SC_OLD-1e9a0220e69a62dd45b53753537fb4563e50412c.tar.gz opensim-SC_OLD-1e9a0220e69a62dd45b53753537fb4563e50412c.tar.bz2 opensim-SC_OLD-1e9a0220e69a62dd45b53753537fb4563e50412c.tar.xz |
Quite big change to how Sessions/circuits are Authenticated. Seems to work okay but needs a lot more testing.
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/AuthenticateSessionsLocal.cs | 30 |
1 files changed, 30 insertions, 0 deletions
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenSim.Framework.Types; | ||
5 | |||
6 | namespace OpenSim | ||
7 | { | ||
8 | public class AuthenticateSessionsLocal : AuthenticateSessionsBase | ||
9 | { | ||
10 | public AuthenticateSessionsLocal() | ||
11 | { | ||
12 | |||
13 | } | ||
14 | |||
15 | public void AddNewSession(Login loginData) | ||
16 | { | ||
17 | AgentCircuitData agent = new AgentCircuitData(); | ||
18 | agent.AgentID = loginData.Agent; | ||
19 | agent.firstname = loginData.First; | ||
20 | agent.lastname = loginData.Last; | ||
21 | agent.SessionID = loginData.Session; | ||
22 | agent.SecureSessionID = loginData.SecureSession; | ||
23 | agent.circuitcode = loginData.CircuitCode; | ||
24 | agent.BaseFolder = loginData.BaseFolder; | ||
25 | agent.InventoryFolder = loginData.InventoryFolder; | ||
26 | |||
27 | this.AddNewCircuit(agent.circuitcode, agent); | ||
28 | } | ||
29 | } | ||
30 | } | ||