diff options
author | Diva Canto | 2014-05-23 17:31:39 -0700 |
---|---|---|
committer | Diva Canto | 2014-05-23 17:31:39 -0700 |
commit | ff9da2446583ffd95b42e7ced2a86c2166c993c1 (patch) | |
tree | b775be9cce73a03831bd7d4c23555d844874c093 /OpenSim/Addons/OfflineIM/Remote/OfflineIMServiceRobustConnector.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-ff9da2446583ffd95b42e7ced2a86c2166c993c1.zip opensim-SC-ff9da2446583ffd95b42e7ced2a86c2166c993c1.tar.gz opensim-SC-ff9da2446583ffd95b42e7ced2a86c2166c993c1.tar.bz2 opensim-SC-ff9da2446583ffd95b42e7ced2a86c2166c993c1.tar.xz |
Added HTTP Authentication also to Groups and offline IM.
Diffstat (limited to 'OpenSim/Addons/OfflineIM/Remote/OfflineIMServiceRobustConnector.cs')
-rw-r--r-- | OpenSim/Addons/OfflineIM/Remote/OfflineIMServiceRobustConnector.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Addons/OfflineIM/Remote/OfflineIMServiceRobustConnector.cs b/OpenSim/Addons/OfflineIM/Remote/OfflineIMServiceRobustConnector.cs index ed5c742..c44b6cc 100644 --- a/OpenSim/Addons/OfflineIM/Remote/OfflineIMServiceRobustConnector.cs +++ b/OpenSim/Addons/OfflineIM/Remote/OfflineIMServiceRobustConnector.cs | |||
@@ -36,6 +36,7 @@ using OpenSim.Framework; | |||
36 | using OpenSim.Server.Base; | 36 | using OpenSim.Server.Base; |
37 | using OpenSim.Services.Interfaces; | 37 | using OpenSim.Services.Interfaces; |
38 | using OpenSim.Framework.Servers.HttpServer; | 38 | using OpenSim.Framework.Servers.HttpServer; |
39 | using OpenSim.Framework.ServiceAuth; | ||
39 | using OpenSim.Server.Handlers.Base; | 40 | using OpenSim.Server.Handlers.Base; |
40 | using log4net; | 41 | using log4net; |
41 | using OpenMetaverse; | 42 | using OpenMetaverse; |
@@ -59,7 +60,9 @@ namespace OpenSim.OfflineIM | |||
59 | 60 | ||
60 | m_OfflineIMService = new OfflineIMService(config); | 61 | m_OfflineIMService = new OfflineIMService(config); |
61 | 62 | ||
62 | server.AddStreamHandler(new OfflineIMServicePostHandler(m_OfflineIMService)); | 63 | IServiceAuth auth = ServiceAuth.Create(config, m_ConfigName); |
64 | |||
65 | server.AddStreamHandler(new OfflineIMServicePostHandler(m_OfflineIMService, auth)); | ||
63 | } | 66 | } |
64 | } | 67 | } |
65 | 68 | ||
@@ -69,8 +72,8 @@ namespace OpenSim.OfflineIM | |||
69 | 72 | ||
70 | private IOfflineIMService m_OfflineIMService; | 73 | private IOfflineIMService m_OfflineIMService; |
71 | 74 | ||
72 | public OfflineIMServicePostHandler(IOfflineIMService service) : | 75 | public OfflineIMServicePostHandler(IOfflineIMService service, IServiceAuth auth) : |
73 | base("POST", "/offlineim") | 76 | base("POST", "/offlineim", auth) |
74 | { | 77 | { |
75 | m_OfflineIMService = service; | 78 | m_OfflineIMService = service; |
76 | } | 79 | } |