aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Interfaces/IAuthenticationService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Interfaces/IAuthenticationService.cs')
-rw-r--r--OpenSim/Services/Interfaces/IAuthenticationService.cs27
1 files changed, 23 insertions, 4 deletions
diff --git a/OpenSim/Services/Interfaces/IAuthenticationService.cs b/OpenSim/Services/Interfaces/IAuthenticationService.cs
index 835b68f..35831c1 100644
--- a/OpenSim/Services/Interfaces/IAuthenticationService.cs
+++ b/OpenSim/Services/Interfaces/IAuthenticationService.cs
@@ -32,10 +32,29 @@ namespace OpenSim.Services.Interfaces
32{ 32{
33 public interface IAuthenticationService 33 public interface IAuthenticationService
34 { 34 {
35 string GetNewKey(UUID userID, UUID authToken); 35 // Create a new user session. If one exists, it is cleared
36 //
37 UUID AllocateUserSession(UUID userID);
36 38
37 bool VerifyKey(UUID userID, string key); 39 // Get a user key from an authentication token. This must be
38 40 // done before the session allocated above is considered valid.
39 bool VerifySession(UUID userID, UUID sessionID); 41 // Repeated calls to this method with the same auth token will
42 // create different keys and invalidate the previous ne.
43 //
44 string GetUserKey(UUID userID, string authToken);
45
46 // Verify that a user key is valid
47 //
48 bool VerifyUserKey(UUID userID, string key);
49
50 // Verify that a user session ID is valid. A session ID is
51 // considered valid when a user has successfully authenticated
52 // at least one time inside that session.
53 //
54 bool VerifyUserSession(UUID userID, UUID session);
55
56 // Remove a user session identifier and deauthenticate the user
57 //
58 void DestroyUserSession(UUID userID);
40 } 59 }
41} 60}