30 using OpenSim.Services.Interfaces;
33 using System.Reflection;
35 using OpenSim.Framework;
36 using OpenSim.Framework.Console;
38 namespace OpenSim.Services.AuthenticationService
49 private static readonly ILog m_log =
51 MethodBase.GetCurrentMethod().DeclaringType);
54 base(config, userService)
63 public string Authenticate(UUID principalID,
string password,
int lifetime, out UUID realID)
69 public string Authenticate(UUID principalID,
string password,
int lifetime)
71 if (
new UUID(password) == UUID.Zero)
73 m_log.DebugFormat(
"[AUTH SERVICE]: UUID.Zero is not a valid web_login_key on PrincipalID {0}", principalID);
78 if (data != null && data.
Data != null)
80 if (data.
Data.ContainsKey(
"webLoginKey"))
82 string key = data.Data[
"webLoginKey"].ToString();
85 data.Data[
"webLoginKey"] = UUID.Zero.ToString();
86 m_Database.Store(data);
87 return GetToken(principalID, lifetime);
91 m_log.DebugFormat(
"[AUTH SERVICE]: web login auth failed, got PrincipalID {0} gave {1} instead of {2}", principalID, password,
key);
94 m_log.DebugFormat(
"[AUTH SERVICE]: no col webLoginKey in passwd.db");
97 m_log.DebugFormat(
"[AUTH SERVICE]: PrincipalID {0} or its data not found", principalID);
string Authenticate(UUID principalID, string password, int lifetime)
string Authenticate(UUID principalID, string password, int lifetime, out UUID realID)
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString key
WebkeyAuthenticationService(IConfigSource config)
WebkeyAuthenticationService(IConfigSource config, IUserAccountService userService)
Dictionary< string, object > Data