2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Tue, 27 Aug 2002 02:03:20 +0000 (02:03 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Tue, 27 Aug 2002 02:03:20 +0000 (02:03 -0000)
* list: added new files in System.Web.Security
* System.Web.Security/DefaultAuthenticationEventHandler.cs:
* System.Web.Security/DefaultAuthenticationModule.cs:
* System.Web.Security/FileAuthorizationModule.cs:
* System.Web.Security/FormsAuthentication.cs:
* System.Web.Security/FormsAuthenticationEventArgs.cs:
* System.Web.Security/FormsAuthenticationEventHandler.cs:
* System.Web.Security/FormsAuthenticationModule.cs:
* System.Web.Security/FormsAuthenticationTicket.cs:
* System.Web.Security/FormsIdentity.cs:
* System.Web.Security/PassportAuthenticationEventArgs.cs:
* System.Web.Security/PassportAuthenticationEventHandler.cs:
* System.Web.Security/PassportAuthenticationModule.cs:
* System.Web.Security/PassportIdentity.cs:
* System.Web.Security/UrlAuthorizationModule.cs:
* System.Web.Security/WindowsAuthenticationEventArgs.cs:
* System.Web.Security/WindowsAuthenticationEventHandler.cs:
* System.Web.Security/WindowsAuthenticationModule.cs: new files. Some
of them implemented, some others stubbed out.

svn path=/trunk/mcs/; revision=7073

20 files changed:
mcs/class/System.Web/ChangeLog
mcs/class/System.Web/System.Web.Security/ChangeLog
mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/FileAuthorizationModule.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/FormsIdentity.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/PassportAuthenticationModule.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/PassportIdentity.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/UrlAuthorizationModule.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.Security/WindowsAuthenticationModule.cs [new file with mode: 0644]
mcs/class/System.Web/list

index 7101a9d4805583b1ef968d4cbae92aceadd24b63..e3e9e2d4be24fdb43e97cda5b39b554f8807787d 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * list: added new files in System.Web.Security
+
 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * list: added HorizontalAlignConverter and VerticalAlignConverter.
index 1aaf169afc7fda48ef54ac41a2817eecbd2a10bc..b6fe7d7dff4ba30ffb323c424cd8df8b8f0e2b4d 100644 (file)
@@ -1,3 +1,24 @@
+2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DefaultAuthenticationEventHandler.cs:
+       * DefaultAuthenticationModule.cs:
+       * FileAuthorizationModule.cs:
+       * FormsAuthentication.cs:
+       * FormsAuthenticationEventArgs.cs:
+       * FormsAuthenticationEventHandler.cs:
+       * FormsAuthenticationModule.cs:
+       * FormsAuthenticationTicket.cs:
+       * FormsIdentity.cs:
+       * PassportAuthenticationEventArgs.cs:
+       * PassportAuthenticationEventHandler.cs:
+       * PassportAuthenticationModule.cs:
+       * PassportIdentity.cs:
+       * UrlAuthorizationModule.cs:
+       * WindowsAuthenticationEventArgs.cs:
+       * WindowsAuthenticationEventHandler.cs:
+       * WindowsAuthenticationModule.cs: new files. Some of them implemented,
+       some others stubbed out.
+
 2002-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * DefaultAuthenticationEventArgs.cs: added file.
diff --git a/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventHandler.cs b/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventHandler.cs
new file mode 100644 (file)
index 0000000..1b9ab56
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.Web.Security.DefaultAuthenticationEventHandler
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+namespace System.Web.Security
+{
+       public delegate void DefaultAuthenticationEventHandler (object sender,
+                                                               DefaultAuthenticationEventArgs e);
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs b/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs
new file mode 100644 (file)
index 0000000..0603262
--- /dev/null
@@ -0,0 +1,29 @@
+//
+// System.Web.Security.DefaultAuthenticationModule
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class DefaultAuthenticationModule : IHttpModule
+       {
+               public event DefaultAuthenticationEventHandler Authenticate;
+
+               public void Dispose ()
+               {
+               }
+
+               [MonoTODO]
+               public void Init (HttpApplication app)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/FileAuthorizationModule.cs b/mcs/class/System.Web/System.Web.Security/FileAuthorizationModule.cs
new file mode 100644 (file)
index 0000000..af70f6f
--- /dev/null
@@ -0,0 +1,27 @@
+//
+// System.Web.Security.FileAuthorizationModule
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class FileAuthorizationModule : IHttpModule
+       {
+               public void Dispose ()
+               {
+               }
+
+               [MonoTODO]
+               public void Init (HttpApplication app)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs
new file mode 100644 (file)
index 0000000..9771a87
--- /dev/null
@@ -0,0 +1,115 @@
+//
+// System.Web.Security.FormsAuthentication
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class FormsAuthentication
+       {
+               [MonoTODO]
+               public static bool Authenticate (string name, string password)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static FormsAuthenticationTicket Decrypt (string encryptedTicket)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static string Encrypt (FormsAuthenticationTicket ticket)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static HttpCookie GetAuthCookie (string userName, bool createPersistentCookie)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static HttpCookie GetAuthCookie (string userName, bool createPersistentCookie, string strCookiePath)
+               {
+                       throw new NotImplementedException ();
+               }
+               [MonoTODO]
+               public static string GetRedirectUrl (string userName, bool createPersistentCookie)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static string HashPasswordForStoringInConfigFile (string password, string passwordFormat)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void Initialize ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void RedirectFromLoginPage (string userName, bool createPersistentCookie)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void RedirectFromLoginPage (string userName, bool createPersistentCookie, string strCookiePath)
+               {
+                       throw new NotImplementedException ();
+               }
+               [MonoTODO]
+               public static FormsAuthenticationTicket RenewTicketIfOld (FormsAuthenticationTicket tOld)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void SetAuthCookie (string userName, bool createPersistentCookie)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void SetAuthCookie (string userName, bool createPersistentCookie, string strCookiePath)
+               {
+                       throw new NotImplementedException ();
+               }
+               [MonoTODO]
+               public static void SignOut ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static string FormsCookieName
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public static string FormsCookiePath
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventArgs.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventArgs.cs
new file mode 100644 (file)
index 0000000..bbc6106
--- /dev/null
@@ -0,0 +1,45 @@
+//
+// System.Web.Security.FormsAuthenticationEventArgs
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Security.Principal;
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class FormsAuthenticationEventArgs : EventArgs
+       {
+               IPrincipal user;
+               HttpContext context;
+
+               public FormsAuthenticationEventArgs (HttpContext context)
+               {
+                       this.context = context;
+               }
+
+               public HttpContext Context
+               {
+                       get {
+                               return context;
+                       }
+               }
+
+               public IPrincipal User
+               {
+                       get {
+                               return user;
+                       }
+
+                       set {
+                               user = value;
+                       }
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventHandler.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventHandler.cs
new file mode 100644 (file)
index 0000000..ae47ed3
--- /dev/null
@@ -0,0 +1,14 @@
+//
+// System.Web.Security.FormsAuthenticationEventHandler
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+namespace System.Web.Security
+{
+       public delegate void FormsAuthenticationEventHandler (object sender, FormsAuthenticationEventArgs e);
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
new file mode 100644 (file)
index 0000000..fec2d70
--- /dev/null
@@ -0,0 +1,30 @@
+//
+// System.Web.Security.FormsAuthenticationModule
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class FormsAuthenticationModule : IHttpModule
+       {
+               public event FormsAuthenticationEventHandler Authenticate;
+
+               public void Dispose ()
+               {
+               }
+
+               [MonoTODO]
+               public void Init (HttpApplication app)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs
new file mode 100644 (file)
index 0000000..1f4be16
--- /dev/null
@@ -0,0 +1,130 @@
+//
+// System.Web.Security.FormsAuthenticationTicket
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+
+namespace System.Web.Security
+{
+       [Serializable]
+       public sealed class FormsAuthenticationTicket
+       {
+               int version;
+               string name;
+               DateTime issueDate;
+               DateTime expiration;
+               bool isPersistent;
+               string userData;
+               string cookiePath;
+
+               public FormsAuthenticationTicket (int version,
+                                                 string name,
+                                                 DateTime issueDate,
+                                                 DateTime expiration,
+                                                 bool isPersistent,
+                                                 string userData)
+               {
+                       this.version = version;
+                       this.name = name;
+                       this.issueDate = issueDate;
+                       this.expiration = expiration;
+                       this.isPersistent = isPersistent;
+                       this.userData = userData;
+                       //FIXME: cookiePath???
+               }
+
+               public FormsAuthenticationTicket (int version,
+                                                 string name,
+                                                 DateTime issueDate,
+                                                 DateTime expiration,
+                                                 bool isPersistent,
+                                                 string userData,
+                                                 string cookiePath)
+               {
+                       this.version = version;
+                       this.name = name;
+                       this.issueDate = issueDate;
+                       this.expiration = expiration;
+                       this.isPersistent = isPersistent;
+                       this.userData = userData;
+                       this.cookiePath = cookiePath;
+               }
+
+               public FormsAuthenticationTicket (string name, bool isPersistent, int timeout)
+               {
+                       this.version = 1;
+                       this.name = name;
+                       this.issueDate = DateTime.Now;
+                       this.isPersistent = isPersistent;
+                       if (isPersistent)
+                               expiration = issueDate.AddYears (50);
+                       else
+                               expiration = issueDate.AddMinutes ((double) timeout);
+
+                       this.userData = String.Empty;
+                       //FIXME: cookiePath???
+               }
+
+               public string CookiePath
+               {
+                       get {
+                               return cookiePath;
+                       }
+               }
+
+               public DateTime Expiration
+               {
+                       get {
+                               return expiration;
+                       }
+               }
+
+               public bool Expired
+               {
+                       get {
+                               return DateTime.Now > expiration;
+                       }
+               }
+
+               public bool IsPersistent
+               {
+                       get {
+                               return isPersistent;
+                       }
+               }
+
+               public DateTime IssueDate
+               {
+                       get {
+                               return issueDate;
+                       }
+               }
+
+               public string Name
+               {
+                       get {
+                               return name;
+                       }
+               }
+
+               public string UserData
+               {
+                       get {
+                               return userData;
+                       }
+               }
+
+               public int Version
+               {
+                       get {
+                               return version;
+                       }
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/FormsIdentity.cs b/mcs/class/System.Web/System.Web.Security/FormsIdentity.cs
new file mode 100644 (file)
index 0000000..98fedab
--- /dev/null
@@ -0,0 +1,54 @@
+//
+// System.Web.Security.FormsIdentity
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Security.Principal;
+
+namespace System.Web.Security
+{
+       [Serializable]
+       public sealed class FormsIdentity : IIdentity
+       {
+               FormsAuthenticationTicket ticket;
+
+               public FormsIdentity (FormsAuthenticationTicket ticket)
+               {
+                       this.ticket = ticket;
+               }
+
+               public string AuthenticationType
+               {
+                       get {
+                               return "Forms";
+                       }
+               }
+
+               public bool IsAuthenticated
+               {
+                       get {
+                               return true;
+                       }
+               }
+
+               public string Name
+               {
+                       get {
+                               return ticket.Name;
+                       }
+               }
+
+               public FormsAuthenticationTicket Ticket
+               {
+                       get {
+                               return ticket;
+                       }
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventArgs.cs b/mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventArgs.cs
new file mode 100644 (file)
index 0000000..589b81f
--- /dev/null
@@ -0,0 +1,54 @@
+//
+// System.Web.Security.PassportAuthenticationEventArgs
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Security.Principal;
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class PassportAuthenticationEventArgs : EventArgs
+       {
+               PassportIdentity identity;
+               HttpContext context;
+               IPrincipal user;
+
+               public PassportAuthenticationEventArgs (PassportIdentity identity, HttpContext context)
+               {
+                       this.identity = identity;
+                       this.context = context;
+               }
+
+               public HttpContext Context
+               {
+                       get {
+                               return context;
+                       }
+               }
+
+               public PassportIdentity Identity
+               {
+                       get {
+                               return identity;
+                       }
+               }
+
+               public IPrincipal User
+               {
+                       get {
+                               return user;
+                       }
+
+                       set {
+                               user = value;
+                       }
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventHandler.cs b/mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventHandler.cs
new file mode 100644 (file)
index 0000000..20181ae
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.Web.Security.PassportAuthenticationEventHandler
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+namespace System.Web.Security
+{
+       public delegate void PassportAuthenticationEventHandler (object sender,
+                                                                PassportAuthenticationEventArgs e);
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/PassportAuthenticationModule.cs b/mcs/class/System.Web/System.Web.Security/PassportAuthenticationModule.cs
new file mode 100644 (file)
index 0000000..e5f1c42
--- /dev/null
@@ -0,0 +1,29 @@
+//
+// System.Web.Security.PassportAuthenticationModule
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class PassportAuthenticationModule : IHttpModule
+       {
+               public event PassportAuthenticationEventHandler Authenticate;
+
+               public void Dispose ()
+               {
+               }
+
+               [MonoTODO("Will we ever implement this? :-)")]
+               public void Init (HttpApplication app)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/PassportIdentity.cs b/mcs/class/System.Web/System.Web.Security/PassportIdentity.cs
new file mode 100644 (file)
index 0000000..937e825
--- /dev/null
@@ -0,0 +1,438 @@
+//
+// System.Web.Security.PassportIdentity
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Security.Principal;
+
+namespace System.Web.Security
+{
+       public sealed class PassportIdentity : IIdentity
+       {
+               [MonoTODO]
+               public PassportIdentity ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               ~PassportIdentity ()
+               {
+               }
+
+               [MonoTODO]
+               public string AuthUrl ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string AuthUrl (string strReturnUrl,
+                                      int iTimeWindow,
+                                      bool fForceLogin,
+                                      string strCoBrandedArgs,
+                                      int iLangID,
+                                      string strNameSpace,
+                                      int iKPP,
+                                      bool bUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string AuthUrl (string strReturnUrl,
+                                      int iTimeWindow,
+                                      int iForceLogin,
+                                      string strCoBrandedArgs,
+                                      int iLangID,
+                                      string strNameSpace,
+                                      int iKPP,
+                                      int iUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string AuthUrl2 ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string AuthUrl2 (string strReturnUrl,
+                                       int iTimeWindow,
+                                       bool fForceLogin,
+                                       string strCoBrandedArgs,
+                                       int iLangID,
+                                       string strNameSpace,
+                                       int iKPP,
+                                       bool bUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string AuthUrl2 (string strReturnUrl,
+                                       int iTimeWindow,
+                                       int iForceLogin,
+                                       string strCoBrandedArgs,
+                                       int iLangID,
+                                       string strNameSpace,
+                                       int iKPP,
+                                       int iUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static string Compress (string strData)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static bool CryptIsValid ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static int CryptPutHost (string strHost)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static int CryptPutSite (string strSite)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static string Decompress (string strData)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static string Decrypt (string strData)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static string Encrypt (string strData)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public object GetCurrentConfig (string strAttribute)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string GetDomainFromMemberName (string strMemberName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string GetLoginChallenge ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string GetLoginChallenge (string szRetURL,
+                                                int iTimeWindow,
+                                                int fForceLogin,
+                                                string szCOBrandArgs,
+                                                int iLangID,
+                                                string strNameSpace,
+                                                int iKPP,
+                                                int iUseSecureAuth,
+                                                object oExtraParams)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public object GetOption (string strOpt)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public object GetProfileObject (string strProfileName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public bool HasFlag (int iFlagMask)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public bool HasProfile (string strProfile)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public int LoginUser ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public int LoginUser (string szRetURL,
+                                     int iTimeWindow,
+                                     bool fForceLogin,
+                                     string szCOBrandArgs,
+                                     int iLangID,
+                                     string strNameSpace,
+                                     int iKPP,
+                                     bool fUseSecureAuth,
+                                     object oExtraParams)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public int LoginUser (string szRetURL,
+                                     int iTimeWindow,
+                                     int fForceLogin,
+                                     string szCOBrandArgs,
+                                     int iLangID,
+                                     string strNameSpace,
+                                     int iKPP,
+                                     int iUseSecureAuth,
+                                     object oExtraParams)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string LogoTag ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string LogoTag (string strReturnUrl,
+                                      int iTimeWindow,
+                                      bool fForceLogin,
+                                      string strCoBrandedArgs,
+                                      int iLangID,
+                                      bool fSecure,
+                                      string strNameSpace,
+                                      int iKPP,
+                                      bool bUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string LogoTag (string strReturnUrl,
+                                      int iTimeWindow,
+                                      int iForceLogin,
+                                      string strCoBrandedArgs,
+                                      int iLangID,
+                                      int iSecure,
+                                      string strNameSpace,
+                                      int iKPP,
+                                      int iUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string LogoTag2 ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string LogoTag2 (string strReturnUrl,
+                                       int iTimeWindow,
+                                       bool fForceLogin,
+                                       string strCoBrandedArgs,
+                                       int iLangID,
+                                       bool fSecure,
+                                       string strNameSpace,
+                                       int iKPP,
+                                       bool bUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string LogoTag2 (string strReturnUrl,
+                                       int iTimeWindow,
+                                       int iForceLogin,
+                                       string strCoBrandedArgs,
+                                       int iLangID,
+                                       int iSecure,
+                                       string strNameSpace,
+                                       int iKPP,
+                                       int iUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string LogoutURL ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string LogoutURL (string szReturnURL,
+                                        string szCOBrandArgs,
+                                        int iLangID,
+                                        string strDomain,
+                                        int iUseSecureAuth)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public void SetOption (string strOpt, object vOpt)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void SignOut (string strSignOutDotGifFileName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public object Ticket (string strAttribute)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string AuthenticationType
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public int Error
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public bool GetFromNetworkServer
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public bool HasSavedPassword
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public bool HasTicket
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public string HexPUID
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public bool IsAuthenticated
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public string this [string strProfileName]
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public string Name
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public int TicketAge
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public int TimeSinceSignIn
+               {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/UrlAuthorizationModule.cs b/mcs/class/System.Web/System.Web.Security/UrlAuthorizationModule.cs
new file mode 100644 (file)
index 0000000..d648b33
--- /dev/null
@@ -0,0 +1,33 @@
+//
+// System.Web.Security.UrlAuthorizationModule
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Web;
+using System.Security.Principal;
+
+namespace System.Web.Security
+{
+       public sealed class UrlAuthorizationModule : IHttpModule
+       {
+               public UrlAuthorizationModule ()
+               {
+               }
+
+               public void Dispose ()
+               {
+               }
+
+               [MonoTODO]
+               public void Init (HttpApplication app)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventArgs.cs b/mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventArgs.cs
new file mode 100644 (file)
index 0000000..b09de1c
--- /dev/null
@@ -0,0 +1,54 @@
+//
+// System.Web.Security.WindowsAuthenticationEventArgs
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Security.Principal;
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class WindowsAuthenticationEventArgs : EventArgs
+       {
+               WindowsIdentity identity;
+               HttpContext context;
+               IPrincipal user;
+
+               public WindowsAuthenticationEventArgs (WindowsIdentity identity, HttpContext context)
+               {
+                       this.identity = identity;
+                       this.context = context;
+               }
+
+               public System.Web.HttpContext Context
+               {
+                       get {
+                               return context;
+                       }
+               }
+
+               public WindowsIdentity Identity
+               {
+                       get {
+                               return identity;
+                       }
+               }
+
+               public IPrincipal User
+               {
+                       get {
+                               return user;
+                       }
+
+                       set {
+                               user = value;
+                       }
+               }
+       }
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventHandler.cs b/mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventHandler.cs
new file mode 100644 (file)
index 0000000..f1c0b47
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.Web.Security.WindowsAuthenticationEventHandler
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+namespace System.Web.Security
+{
+       public delegate void WindowsAuthenticationEventHandler (object sender,
+                                                               WindowsAuthenticationEventArgs e);
+}
+
diff --git a/mcs/class/System.Web/System.Web.Security/WindowsAuthenticationModule.cs b/mcs/class/System.Web/System.Web.Security/WindowsAuthenticationModule.cs
new file mode 100644 (file)
index 0000000..419040e
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.Security.WindowsAuthenticationModule
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.Web;
+
+namespace System.Web.Security
+{
+       public sealed class WindowsAuthenticationModule : IHttpModule
+       {
+               public event WindowsAuthenticationEventHandler Authenticate;
+
+               public WindowsAuthenticationModule ()
+               {
+               }
+
+               public void Dispose ()
+               {
+               }
+
+               [MonoTODO]
+               public void Init (HttpApplication app)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
index f700681703eb70c8db39d03f87ed9390f645f54b..9e2cc3ef2f893ff99c51ff1751b5a64853d2eaa4 100755 (executable)
@@ -309,6 +309,24 @@ System.Web.Util/UrlUtils.cs
 System.Web.Util/WebEqualComparer.cs
 System.Web.Util/WebHashCodeProvider.cs
 System.Web.Security/DefaultAuthenticationEventArgs.cs
+System.Web.Security/DefaultAuthenticationEventArgs.cs
+System.Web.Security/DefaultAuthenticationEventHandler.cs
+System.Web.Security/DefaultAuthenticationModule.cs
+System.Web.Security/FileAuthorizationModule.cs
+System.Web.Security/FormsAuthentication.cs
+System.Web.Security/FormsAuthenticationEventArgs.cs
+System.Web.Security/FormsAuthenticationEventHandler.cs
+System.Web.Security/FormsAuthenticationModule.cs
+System.Web.Security/FormsAuthenticationTicket.cs
+System.Web.Security/FormsIdentity.cs
+System.Web.Security/PassportAuthenticationEventArgs.cs
+System.Web.Security/PassportAuthenticationEventHandler.cs
+System.Web.Security/PassportAuthenticationModule.cs
+System.Web.Security/PassportIdentity.cs
+System.Web.Security/UrlAuthorizationModule.cs
+System.Web.Security/WindowsAuthenticationEventArgs.cs
+System.Web.Security/WindowsAuthenticationEventHandler.cs
+System.Web.Security/WindowsAuthenticationModule.cs
 System.Web.SessionState/HttpSessionState.cs
 System.Web.SessionState/IReadOnlySessionState.cs
 System.Web.SessionState/IRequiresSessionState.cs