Explorar o código

2002-08-26 Gonzalo Paniagua Javier <[email protected]>

	* 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
Gonzalo Paniagua Javier %!s(int64=23) %!d(string=hai) anos
pai
achega
9e679a80e4
Modificáronse 20 ficheiros con 1174 adicións e 0 borrados
  1. 4 0
      mcs/class/System.Web/ChangeLog
  2. 21 0
      mcs/class/System.Web/System.Web.Security/ChangeLog
  3. 15 0
      mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventHandler.cs
  4. 29 0
      mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs
  5. 27 0
      mcs/class/System.Web/System.Web.Security/FileAuthorizationModule.cs
  6. 115 0
      mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs
  7. 45 0
      mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventArgs.cs
  8. 14 0
      mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventHandler.cs
  9. 30 0
      mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
  10. 130 0
      mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs
  11. 54 0
      mcs/class/System.Web/System.Web.Security/FormsIdentity.cs
  12. 54 0
      mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventArgs.cs
  13. 15 0
      mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventHandler.cs
  14. 29 0
      mcs/class/System.Web/System.Web.Security/PassportAuthenticationModule.cs
  15. 438 0
      mcs/class/System.Web/System.Web.Security/PassportIdentity.cs
  16. 33 0
      mcs/class/System.Web/System.Web.Security/UrlAuthorizationModule.cs
  17. 54 0
      mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventArgs.cs
  18. 15 0
      mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventHandler.cs
  19. 34 0
      mcs/class/System.Web/System.Web.Security/WindowsAuthenticationModule.cs
  20. 18 0
      mcs/class/System.Web/list

+ 4 - 0
mcs/class/System.Web/ChangeLog

@@ -1,3 +1,7 @@
+2002-08-26  Gonzalo Paniagua Javier <[email protected]>
+
+	* list: added new files in System.Web.Security
+
 2002-08-26  Gonzalo Paniagua Javier <[email protected]>
 
 	* list: added HorizontalAlignConverter and VerticalAlignConverter.

+ 21 - 0
mcs/class/System.Web/System.Web.Security/ChangeLog

@@ -1,3 +1,24 @@
+2002-08-26  Gonzalo Paniagua Javier <[email protected]>
+
+	* 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 <[email protected]>
 
 	* DefaultAuthenticationEventArgs.cs: added file.

+ 15 - 0
mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventHandler.cs

@@ -0,0 +1,15 @@
+//
+// System.Web.Security.DefaultAuthenticationEventHandler
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+namespace System.Web.Security
+{
+	public delegate void DefaultAuthenticationEventHandler (object sender,
+								DefaultAuthenticationEventArgs e);
+}
+

+ 29 - 0
mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs

@@ -0,0 +1,29 @@
+//
+// System.Web.Security.DefaultAuthenticationModule
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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 ();
+		}
+	}
+}
+

+ 27 - 0
mcs/class/System.Web/System.Web.Security/FileAuthorizationModule.cs

@@ -0,0 +1,27 @@
+//
+// System.Web.Security.FileAuthorizationModule
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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 ();
+		}
+	}
+}
+

+ 115 - 0
mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs

@@ -0,0 +1,115 @@
+//
+// System.Web.Security.FormsAuthentication
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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 ();
+			}
+		}
+	}
+}
+

+ 45 - 0
mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventArgs.cs

@@ -0,0 +1,45 @@
+//
+// System.Web.Security.FormsAuthenticationEventArgs
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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;
+			}
+		}
+	}
+}
+

+ 14 - 0
mcs/class/System.Web/System.Web.Security/FormsAuthenticationEventHandler.cs

@@ -0,0 +1,14 @@
+//
+// System.Web.Security.FormsAuthenticationEventHandler
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+namespace System.Web.Security
+{
+	public delegate void FormsAuthenticationEventHandler (object sender, FormsAuthenticationEventArgs e);
+}
+

+ 30 - 0
mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs

@@ -0,0 +1,30 @@
+//
+// System.Web.Security.FormsAuthenticationModule
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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 ();
+		}
+	}
+}
+

+ 130 - 0
mcs/class/System.Web/System.Web.Security/FormsAuthenticationTicket.cs

@@ -0,0 +1,130 @@
+//
+// System.Web.Security.FormsAuthenticationTicket
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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;
+			}
+		}
+	}
+}
+

+ 54 - 0
mcs/class/System.Web/System.Web.Security/FormsIdentity.cs

@@ -0,0 +1,54 @@
+//
+// System.Web.Security.FormsIdentity
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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;
+			}
+		}
+	}
+}
+

+ 54 - 0
mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventArgs.cs

@@ -0,0 +1,54 @@
+//
+// System.Web.Security.PassportAuthenticationEventArgs
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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;
+			}
+		}
+	}
+}
+

+ 15 - 0
mcs/class/System.Web/System.Web.Security/PassportAuthenticationEventHandler.cs

@@ -0,0 +1,15 @@
+//
+// System.Web.Security.PassportAuthenticationEventHandler
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+namespace System.Web.Security
+{
+	public delegate void PassportAuthenticationEventHandler (object sender,
+								 PassportAuthenticationEventArgs e);
+}
+

+ 29 - 0
mcs/class/System.Web/System.Web.Security/PassportAuthenticationModule.cs

@@ -0,0 +1,29 @@
+//
+// System.Web.Security.PassportAuthenticationModule
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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 ();
+		}
+	}
+}
+

+ 438 - 0
mcs/class/System.Web/System.Web.Security/PassportIdentity.cs

@@ -0,0 +1,438 @@
+//
+// System.Web.Security.PassportIdentity
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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 ();
+			}
+		}
+	}
+}
+

+ 33 - 0
mcs/class/System.Web/System.Web.Security/UrlAuthorizationModule.cs

@@ -0,0 +1,33 @@
+//
+// System.Web.Security.UrlAuthorizationModule
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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 ();
+		}
+	}
+}
+

+ 54 - 0
mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventArgs.cs

@@ -0,0 +1,54 @@
+//
+// System.Web.Security.WindowsAuthenticationEventArgs
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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;
+			}
+		}
+	}
+}
+

+ 15 - 0
mcs/class/System.Web/System.Web.Security/WindowsAuthenticationEventHandler.cs

@@ -0,0 +1,15 @@
+//
+// System.Web.Security.WindowsAuthenticationEventHandler
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+namespace System.Web.Security
+{
+	public delegate void WindowsAuthenticationEventHandler (object sender,
+								WindowsAuthenticationEventArgs e);
+}
+

+ 34 - 0
mcs/class/System.Web/System.Web.Security/WindowsAuthenticationModule.cs

@@ -0,0 +1,34 @@
+//
+// System.Web.Security.WindowsAuthenticationModule
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (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 ();
+		}
+	}
+}
+

+ 18 - 0
mcs/class/System.Web/list

@@ -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