diff options
author | onefang | 2019-09-11 16:36:50 +1000 |
---|---|---|
committer | onefang | 2019-09-11 16:36:50 +1000 |
commit | 50cd1ffd32f69228e566f2b0b89f86ea0d9fe489 (patch) | |
tree | 52f2ab0c04f1a5d7d6ac5dc872981b4b156447e7 /OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs | |
parent | Renamed branch to SledjChisl. (diff) | |
parent | Bump to release flavour, build 0. (diff) | |
download | opensim-SC-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.zip opensim-SC-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.gz opensim-SC-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.bz2 opensim-SC-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.xz |
Merge branch 'SledjChisl'
Diffstat (limited to 'OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs')
-rw-r--r-- | OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs b/OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs index 2344c0e..0bd5b1f 100644 --- a/OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs +++ b/OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs | |||
@@ -40,7 +40,7 @@ namespace OpenSim.Services.AuthenticationService | |||
40 | // Generic Authentication service used for identifying | 40 | // Generic Authentication service used for identifying |
41 | // and authenticating principals. | 41 | // and authenticating principals. |
42 | // Principals may be clients acting on users' behalf, | 42 | // Principals may be clients acting on users' behalf, |
43 | // or any other components that need | 43 | // or any other components that need |
44 | // verifiable identification. | 44 | // verifiable identification. |
45 | // | 45 | // |
46 | public class WebkeyAuthenticationService : | 46 | public class WebkeyAuthenticationService : |
@@ -50,11 +50,22 @@ namespace OpenSim.Services.AuthenticationService | |||
50 | LogManager.GetLogger( | 50 | LogManager.GetLogger( |
51 | MethodBase.GetCurrentMethod().DeclaringType); | 51 | MethodBase.GetCurrentMethod().DeclaringType); |
52 | 52 | ||
53 | public WebkeyAuthenticationService(IConfigSource config, IUserAccountService userService) : | ||
54 | base(config, userService) | ||
55 | { | ||
56 | } | ||
57 | |||
53 | public WebkeyAuthenticationService(IConfigSource config) : | 58 | public WebkeyAuthenticationService(IConfigSource config) : |
54 | base(config) | 59 | base(config) |
55 | { | 60 | { |
56 | } | 61 | } |
57 | 62 | ||
63 | public string Authenticate(UUID principalID, string password, int lifetime, out UUID realID) | ||
64 | { | ||
65 | realID = UUID.Zero; | ||
66 | return Authenticate(principalID, password, lifetime); | ||
67 | } | ||
68 | |||
58 | public string Authenticate(UUID principalID, string password, int lifetime) | 69 | public string Authenticate(UUID principalID, string password, int lifetime) |
59 | { | 70 | { |
60 | if (new UUID(password) == UUID.Zero) | 71 | if (new UUID(password) == UUID.Zero) |
@@ -68,7 +79,7 @@ namespace OpenSim.Services.AuthenticationService | |||
68 | { | 79 | { |
69 | if (data.Data.ContainsKey("webLoginKey")) | 80 | if (data.Data.ContainsKey("webLoginKey")) |
70 | { | 81 | { |
71 | string key = data.Data["webLoginKey"].ToString(); | 82 | string key = data.Data["webLoginKey"].ToString(); |
72 | if (key == password) | 83 | if (key == password) |
73 | { | 84 | { |
74 | data.Data["webLoginKey"] = UUID.Zero.ToString(); | 85 | data.Data["webLoginKey"] = UUID.Zero.ToString(); |