diff options
Flech out the Authentication service. Add the database loader. Introduce
inheritance to deal with common tasks like crypto.
Still untested.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs index d20edb3..5c83299 100644 --- a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs +++ b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs | |||
@@ -27,6 +27,10 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using OpenMetaverse; | 29 | using OpenMetaverse; |
30 | using OpenSim.Services.Interfaces; | ||
31 | using log4net; | ||
32 | using Nini.Config; | ||
33 | using System.Reflection; | ||
30 | 34 | ||
31 | namespace OpenSim.Services.AuthenticationService | 35 | namespace OpenSim.Services.AuthenticationService |
32 | { | 36 | { |
@@ -36,11 +40,16 @@ namespace OpenSim.Services.AuthenticationService | |||
36 | // or any other components that need | 40 | // or any other components that need |
37 | // verifiable identification. | 41 | // verifiable identification. |
38 | // | 42 | // |
39 | public class PasswordAuthenticationService | 43 | public class PasswordAuthenticationService : |
44 | AuthenticationServiceBase, IAuthenticationService | ||
40 | { | 45 | { |
41 | public byte[] GetPublicKey() | 46 | private static readonly ILog m_log = |
47 | LogManager.GetLogger( | ||
48 | MethodBase.GetCurrentMethod().DeclaringType); | ||
49 | |||
50 | public PasswordAuthenticationService(IConfigSource config) : | ||
51 | base(config) | ||
42 | { | 52 | { |
43 | return new byte[0]; | ||
44 | } | 53 | } |
45 | 54 | ||
46 | public string Authenticate(UUID principalID, string password) | 55 | public string Authenticate(UUID principalID, string password) |
@@ -62,15 +71,5 @@ namespace OpenSim.Services.AuthenticationService | |||
62 | { | 71 | { |
63 | return false; | 72 | return false; |
64 | } | 73 | } |
65 | |||
66 | public bool Release(UUID principalID, string token) | ||
67 | { | ||
68 | return false; | ||
69 | } | ||
70 | |||
71 | public bool ReleaseEncrypted(byte[] cyphertext, byte[] key) | ||
72 | { | ||
73 | return false; | ||
74 | } | ||
75 | } | 74 | } |
76 | } | 75 | } |