* ToolTask.cs (ProcessOuputTool): Move logging of tool
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / PassportAuthentication.cs
index 60dfcd3aa7cd3920a5d99eb80de6db0b6645448d..5345d55ad6727d925f155ee86b96ff0589f7c897 100644 (file)
@@ -41,21 +41,28 @@ namespace System.Web.Configuration {
                static ConfigurationProperty redirectUrlProp;
                static ConfigurationPropertyCollection properties;
 
+               static ConfigurationElementProperty elementProperty;
+
                static PassportAuthentication ()
                {
                        redirectUrlProp = new ConfigurationProperty ("redirectUrl", typeof (string), "internal");
                        properties = new ConfigurationPropertyCollection ();
 
                        properties.Add (redirectUrlProp);
+
+                       elementProperty = new ConfigurationElementProperty (new CallbackValidator (typeof (PassportAuthentication), ValidateElement));
+               }
+
+               static void ValidateElement (object o)
+               {
+                       /* XXX do some sort of element validation here? */
                }
 
-#if notyet
                protected override ConfigurationElementProperty ElementProperty {
-                       get { }
+                       get { return elementProperty; }
                }
-#endif
 
-               [StringValidator]
+               [StringValidator] /* why is this here? */
                [ConfigurationProperty ("redirectUrl", DefaultValue = "internal")]
                public string RedirectUrl {
                        get { return (string) base [redirectUrlProp];}