Commit Graph
25 Commits
Author SHA1 Message Date
Vladimir Krasnov bc9cdabb6d * AnonymousIdentificationModule.cs: added configuration section caching to AppDomain for TARGET_JVM
* RoleManagerModule.cs, UrlAuthorizationModule.cs, FormsAuthenticationModule.cs: refactored configuration section to be a member of a class

svn path=/trunk/mcs/; revision=74728
2007-03-21 12:31:25 +00:00
Marek Habersack 59a9d7fc7b Expire auth tickets properly. Fixes bug 80739.
svn path=/trunk/mcs/; revision=72475
2007-02-08 13:19:08 +00:00
Vladimir Krasnov 6663a854c8 * FormsAuthenticationModule.cs: fixed OnAuthenticateRequest, suppress exception on wrong ticket
svn path=/trunk/mcs/; revision=69091
2006-12-06 10:02:32 +00:00
Igor Zelmanovich 594d17bf69 2006-12-03 Igor Zelmanovich <[email protected]>
* FormsAuthenticationModule.cs: 
	set SkipAuthorization=true for WebResource.axd


svn path=/trunk/mcs/; revision=68896
2006-12-03 16:07:00 +00:00
Chris Toshok d6d83474bc 2006-02-01 Chris Toshok <[email protected]>
* FormsAuthentication.cs, Membership.cs,
	FormsAuthenticationModule.cs, UrlAuthorizationModule.cs: oops,
	replace GetWebApplicationSection with GetSection.


svn path=/trunk/mcs/; revision=56420
2006-02-01 20:23:02 +00:00
Chris Toshok 563964ae5f 2006-02-01 Chris Toshok <[email protected]>
* FormsAuthentication.cs: CONFIGURATION_2_0 => NET_2_0.
	simplifies the ifdef mess quite a bit.

	* Membership.cs: same.

	* FormsAuthenticationModule.cs: same.

	* UrlAuthorizationModule.cs: same.


svn path=/trunk/mcs/; revision=56406
2006-02-01 19:11:25 +00:00
Gonzalo Paniagua Javier 203dbe820f 2005-12-22 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: expire the cookie. Fixes bug #77043.
	Patch by Cyrille Colin.


svn path=/trunk/mcs/; revision=54717
2005-12-22 04:08:01 +00:00
Gonzalo Paniagua Javier 0ed5b8fe64 move reqPath into the try/catch too
svn path=/trunk/mcs/; revision=54361
2005-12-14 15:28:43 +00:00
Gonzalo Paniagua Javier 2823045f76 2005-12-13 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: ignore any exception thrown when mapping
	the provided virtual path to the physical one. Patch by Cyrille Colin.


svn path=/trunk/mcs/; revision=54323
2005-12-13 21:31:23 +00:00
Chris Toshok 4ebea5593a 2005-11-28 Chris Toshok <[email protected]>
* FormsAuthenticationModule.cs (OnAuthenticateRequest):
	CONFIGURATION_2_0 work.
	(OnEndRequest): same.


svn path=/trunk/mcs/; revision=53581
2005-11-28 20:39:16 +00:00
Sebastien Pouliot 79f7f0a08c 2005-09-09 Sebastien Pouliot <[email protected]>
* DefaultAuthenticationEventArgs.cs: Added LinkDemand for Minimal.
	* DefaultAuthenticationModule.cs: Added LinkDemand for Minimal. Added
	Demand for UnmanagedCode on constructor.
	* FileAuthorizationModule.cs: Added LinkDemand for Minimal. Added 
	Demand for UnmanagedCode on constructor.
	* FormsAuthentication.cs: Added LinkDemand for Minimal.
	* FormsAuthenticationEventArgs.cs: Added LinkDemand for Minimal.
	* FormsAuthenticationModule.cs: Added LinkDemand for Minimal. Added 
	Demand for UnmanagedCode on constructor.
	* FormsAuthenticationTicket.cs: Added LinkDemand for Minimal.
	* FormsIdentity.cs: Added LinkDemand for Minimal.
	* PassportAuthenticationEventArgs.cs: Added LinkDemand for Minimal.
	* PassportAuthenticationModule.cs: Added LinkDemand for Minimal. Added
	Demand for UnmanagedCode on constructor.
	* PassportIdentity.cs: Added LinkDemand for Minimal. Added Demand for
	UnmanagedCode on constructor.
	* UrlAuthorizationModule.cs: Added LinkDemand for Minimal. Added 
	Demand for UnmanagedCode on constructor.
	* WindowsAuthenticationEventArgs.cs: Added LinkDemand for Minimal.
	* WindowsAuthenticationModule.cs: Added LinkDemand for Minimal. Added
	Demand for UnmanagedCode on constructor.


svn path=/trunk/mcs/; revision=49819
2005-09-09 19:00:26 +00:00
Eyal Alalouf 335c4876d3 Check for null config in FormsAuthenticationModule.OnAuthenticateRequest
svn path=/trunk/mcs/; revision=47655
2005-07-25 14:45:51 +00:00
Gonzalo Paniagua Javier 96b51938b4 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: fix for bug 73545, which caused
	authentication not to work when the cookie was not persistent.
	Patch by Ilya Kharmatsky (Mainsoft).


svn path=/trunk/mcs/; revision=41675
2005-03-11 06:02:22 +00:00
Gonzalo Paniagua Javier 02e38ff57c undo r39947. See bugzilla #73073.
svn path=/trunk/mcs/; revision=41298
2005-03-01 00:33:29 +00:00
Gonzalo Paniagua Javier 2ec2b9f43f 2005-02-01 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: allow accessing other files in the
	directory where the login page is. Fixes bug #71871.


svn path=/trunk/mcs/; revision=39947
2005-02-01 22:20:49 +00:00
Gonzalo Paniagua Javier 399aaabc6e 2004-08-22 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: don't renew expired cookies. Only renew
	the cookie if SlidingExpiration is set. Thanks to Jim Pease.

svn path=/trunk/mcs/; revision=32676
2004-08-22 21:53:14 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier d20bb0558f 2004-04-21 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: re-read configuration files if needed
	when determining if forms auth. is used.

svn path=/trunk/mcs/; revision=25767
2004-04-21 09:55:42 +00:00
Gonzalo Paniagua Javier 539f2978cc 2003-10-04 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: fixed for applications other than /.

svn path=/trunk/mcs/; revision=18593
2003-10-04 17:11:01 +00:00
Gonzalo Paniagua Javier fc3f7cfbe7 2003-07-31 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: really renew the ticket. Thanks to
	Jens Thiel <[email protected]>.

svn path=/trunk/mcs/; revision=16938
2003-07-31 15:25:04 +00:00
Gonzalo Paniagua Javier 9b098982cf 2003-02-12 Gonzalo Paniagua Javier <[email protected]>
* list: added AuthorizationConfig and AuthorizationConfigHandler.

	* System.Web/HttpRequest.cs: implemented the indexer.

	* System.Web.Configuration/AuthorizationConfigHandler.cs: handler for
	system.web/authorization section.

	* System.Web.Configuration/AuthorizationConfig.cs: keeps record of
	authorization configuration.

	* System.Web.Security/FormsAuthentication.cs: implemented
	RedirectFromLoginPage and GetRedirectUrl.

	* System.Web.Security/FormsAuthenticationModule.cs: redirect to the
	login page when a 401 error happens.

	* System.Web.Security/UrlAuthorizationModule.cs: check for valid user
	or render error page.

svn path=/trunk/mcs/; revision=11512
2003-02-12 03:39:46 +00:00
Gonzalo Paniagua Javier 777e0e5d46 2003-01-04 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: added new state to handle default
	authentication.

	* System.Web.Configuration/HttpModulesConfigurationHandler.cs: add
	a default authentication module at the end of the list.

	* System.Web.Configuration/ModuleItem.cs: new constructor.
	* System.Web.Security/DefaultAuthenticationModule.cs: implemented. It
	just create a default unauthenticated user when no one else provided one.
	* System.Web.Security/FormsAuthenticationModule.cs: removed debug output.
	* System.Web.UI/Control.cs:
	(AddedControl): take the children to the same state of the parent.
	(InitRecursive): set the page of the children.
	* System.Web.UI/Page.cs: removed one line (it's done a few lines above).
	* System.Web.UI/UserControl.cs:
	(OnInit): always call InitializeAsUserControl
	(InitializeAsUserControl): sets the page for the control.

svn path=/trunk/mcs/; revision=10114
2003-01-04 04:39:32 +00:00
Gonzalo Paniagua Javier 8e35e3a7b9 2002-12-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpCookie.cs: send 'expires' in the header.
	* System.Web.Security/FormsAuthenticationModule.cs: remove debug lines.
	* System.Web.UI/BaseParser.cs: a couple of path fixes to make it work
	when the page is not in the root directory.
	* System.Web.Util/UrlUtils.cs: fixed IsRelativeUrl and IsRootUrl.

svn path=/trunk/mcs/; revision=9797
2002-12-20 13:49:48 +00:00
Gonzalo Paniagua Javier 845496d205 2002-12-19 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration/AuthConfig.cs: LoginUrl defaults to login.aspx.
	* System.Web.Security/FormsAuthentication.cs: return a null ticket when
	an exception is thrown creating it. Implemented RenewTicketIfOld.

	* System.Web.Security/FormsAuthenticationModule.cs: implemented event
	handlers for AuthenticateRequest and EndRequest.
	* System.Web.Security/FormsAuthenticationTicket.cs: implemented
	SetDates and Clone methods.

svn path=/trunk/mcs/; revision=9764
2002-12-19 05:26:58 +00:00
Gonzalo Paniagua Javier 9e679a80e4 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
2002-08-27 02:03:20 +00:00