diff options
author | Mike Mazur | 2009-02-16 02:26:52 +0000 |
---|---|---|
committer | Mike Mazur | 2009-02-16 02:26:52 +0000 |
commit | 932e591e05aa364ad9205f1b98a1247d6a54c590 (patch) | |
tree | efd0ba9b46335a3737acd5773acd7e429e82ccf8 /OpenSim/Grid/AssetInventoryServer/Plugins/NullAuthenticationPlugin.cs | |
parent | Move BrowseFrontend and ReferenceFrontend to (diff) | |
download | opensim-SC_OLD-932e591e05aa364ad9205f1b98a1247d6a54c590.zip opensim-SC_OLD-932e591e05aa364ad9205f1b98a1247d6a54c590.tar.gz opensim-SC_OLD-932e591e05aa364ad9205f1b98a1247d6a54c590.tar.bz2 opensim-SC_OLD-932e591e05aa364ad9205f1b98a1247d6a54c590.tar.xz |
Move NullAuthentication and AuthorizeAll extensions to plugins.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/Plugins/NullAuthenticationPlugin.cs (renamed from OpenSim/Grid/AssetInventoryServer/Extensions/NullAuthentication.cs) | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Extensions/NullAuthentication.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/NullAuthenticationPlugin.cs index 96e210a..81e58c6 100644 --- a/OpenSim/Grid/AssetInventoryServer/Extensions/NullAuthentication.cs +++ b/OpenSim/Grid/AssetInventoryServer/Plugins/NullAuthenticationPlugin.cs | |||
@@ -28,28 +28,54 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | using System; | 30 | using System; |
31 | using ExtensionLoader; | ||
32 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | using OpenSim.Framework; | ||
33 | 33 | ||
34 | namespace OpenSim.Grid.AssetInventoryServer.Extensions | 34 | namespace OpenSim.Grid.AssetInventoryServer.Plugins |
35 | { | 35 | { |
36 | public class NullAuthentication : IExtension<AssetInventoryServer>, IAuthenticationProvider | 36 | public class NullAuthenticationPlugin : IAuthenticationProvider |
37 | { | 37 | { |
38 | AssetInventoryServer server; | 38 | AssetInventoryServer server; |
39 | 39 | ||
40 | public NullAuthentication() | 40 | public NullAuthenticationPlugin() |
41 | { | 41 | { |
42 | } | 42 | } |
43 | 43 | ||
44 | public void Start(AssetInventoryServer server) | 44 | #region IPlugin implementation |
45 | |||
46 | public void Initialise(AssetInventoryServer server) | ||
45 | { | 47 | { |
46 | this.server = server; | 48 | this.server = server; |
49 | |||
50 | Logger.Log.Info("[ASSET] Null Authentication loaded."); | ||
51 | } | ||
52 | |||
53 | /// <summary> | ||
54 | /// <para>Initialises asset interface</para> | ||
55 | /// </summary> | ||
56 | public void Initialise() | ||
57 | { | ||
58 | Logger.Log.InfoFormat("[ASSET]: {0} cannot be default-initialized!", Name); | ||
59 | throw new PluginNotInitialisedException(Name); | ||
60 | } | ||
61 | |||
62 | public void Dispose() | ||
63 | { | ||
64 | } | ||
65 | |||
66 | public string Version | ||
67 | { | ||
68 | // TODO: this should be something meaningful and not hardcoded? | ||
69 | get { return "0.1"; } | ||
47 | } | 70 | } |
48 | 71 | ||
49 | public void Stop() | 72 | public string Name |
50 | { | 73 | { |
74 | get { return "AssetInventoryServer Null authentication frontend"; } | ||
51 | } | 75 | } |
52 | 76 | ||
77 | #endregion IPlugin implementation | ||
78 | |||
53 | public void AddIdentifier(UUID authToken, Uri identifier) | 79 | public void AddIdentifier(UUID authToken, Uri identifier) |
54 | { | 80 | { |
55 | } | 81 | } |