diff options
author | Melanie Thielker | 2009-06-03 19:49:26 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-06-03 19:49:26 +0000 |
commit | 6e494e5de57d248e8c45d8a185d88fa06ee4b160 (patch) | |
tree | 707e62e7b23b1aa49d51f075567dadfb0b373734 /OpenSim/Services/Interfaces | |
parent | * Making sure we fail a bit earlier if we have no AssetService (diff) | |
download | opensim-SC_OLD-6e494e5de57d248e8c45d8a185d88fa06ee4b160.zip opensim-SC_OLD-6e494e5de57d248e8c45d8a185d88fa06ee4b160.tar.gz opensim-SC_OLD-6e494e5de57d248e8c45d8a185d88fa06ee4b160.tar.bz2 opensim-SC_OLD-6e494e5de57d248e8c45d8a185d88fa06ee4b160.tar.xz |
Committing the partial refactor of authentication services. No user functionlity
will eat your babies, etc
Diffstat (limited to 'OpenSim/Services/Interfaces')
-rw-r--r-- | OpenSim/Services/Interfaces/IAuthenticationService.cs | 27 |
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 | } |