clockwerk-opensim – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | vero | 1 | using System; |
2 | using OpenSim.Framework; |
||
3 | using OpenSim.Framework.ServiceAuth; |
||
4 | |||
5 | using Nini.Config; |
||
6 | |||
7 | namespace OpenSim.Services.Connectors |
||
8 | { |
||
9 | public class BaseServiceConnector |
||
10 | { |
||
11 | protected IServiceAuth m_Auth; |
||
12 | |||
13 | public BaseServiceConnector() { } |
||
14 | |||
15 | public BaseServiceConnector(IConfigSource config, string section) |
||
16 | { |
||
17 | Initialise(config, section); |
||
18 | } |
||
19 | |||
20 | public void Initialise(IConfigSource config, string section) |
||
21 | { |
||
22 | string authType = Util.GetConfigVarFromSections<string>(config, "AuthType", new string[] { "Network", section }, "None"); |
||
23 | |||
24 | switch (authType) |
||
25 | { |
||
26 | case "BasicHttpAuthentication": |
||
27 | m_Auth = new BasicHttpAuthentication(config, section); |
||
28 | break; |
||
29 | } |
||
30 | |||
31 | } |
||
32 | } |
||
33 | } |