Commit Graph
52 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier f0cc2e8150 2005-07-28 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: allow hardware acceleration support if
	available. Sebastien dixit.


svn path=/trunk/mcs/; revision=47819
2005-07-28 19:47:18 +00:00
Gonzalo Paniagua Javier ce12797961 2005-07-26 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: the init_vector must be the same accross
	restarts, otherwise the cookie does not work even when a decryption
	key is provided. Initialize it to the bytes of the cookie name. Fixes
	bug #75635.


svn path=/trunk/mcs/; revision=47700
2005-07-26 14:39:51 +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 0ea93bc648 2005-07-25 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: my previous patch missed a "small" detail: it
	didn't include the verification key when computing/checking the
	validation hash. Now this is really a MAC or HMAC or...


svn path=/trunk/mcs/; revision=47632
2005-07-25 08:42:40 +00:00
Gonzalo Paniagua Javier 5386976789 2005-07-25 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs:
	* FormsAuthenticationTicket.cs: added support for validation and
	encryption of the auth. cookie and improved serialization of the ticket.


svn path=/trunk/mcs/; revision=47625
2005-07-25 05:49:40 +00:00
Lluis Sanchez 43778238c5 2005-07-01 Lluis Sanchez Gual <[email protected]>
* Membership.cs: Read provider info from the config file.


svn path=/trunk/mcs/; revision=46850
2005-07-01 18:33:48 +00:00
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +00:00
Lluis Sanchez c2a04b1212 2005-06-10 Lluis Sanchez Gual <[email protected]>
* MembershipUserCollection.cs:
	* MembershipPasswordException.cs:
	* RoleProviderCollection.cs:
	* ActiveDirectoryMembershipProvider.cs:
	* SqlMembershipProvider.cs:
	* MembershipProvider.cs:
	* SqlRoleProvider.cs:
	* Membership.cs:
	* MembershipUser.cs:
	* MembershipProviderCollection.cs:
	* Roles.cs:.
	* RoleProvider.cs: Track api changes in ASP.NET 2.0. Implemented
	some missing methods.
	
	* AccessRoleProvider.cs:
	* AccessMembershipProvider.cs: Removed.
	
	* MembershipCreateUserException.cs:
	* MembershipValidatePasswordEventHandler.cs:
	* ValidatePasswordEventArgs.cs: Implemented.


svn path=/trunk/mcs/; revision=45762
2005-06-10 15:30:39 +00:00
Sebastien Pouliot 91a3fc7f3a 2005-05-21 Sebastien Pouliot <[email protected]>
* FormsAuthentication.cs: Hash the UTF8 representation of the password
	strings (to be compatible with Microsoft implementation).


svn path=/trunk/mcs/; revision=44878
2005-05-22 00:12:13 +00:00
Gonzalo Paniagua Javier 1fba1be550 2005-04-20 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs:
	* PassportAuthenticationModule.cs:
	* WindowsAuthenticationModule.cs: removed warnings.


svn path=/trunk/mcs/; revision=43363
2005-04-20 22:21:19 +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 55e297f89d 2005-02-23 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: make the string to be stored in a config.
	file uppercase... See bug #72557.


svn path=/trunk/mcs/; revision=41123
2005-02-24 00:10:26 +00:00
Gonzalo Paniagua Javier aaa9efd15a 2005-02-06 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: fixed typo when getting the hash for the 
	password in SHA1 and MD5. Thanks to Tadas Dailyda.
	Lock on a static object instead of typeof(FormsAuthentication).


svn path=/trunk/mcs/; revision=40212
2005-02-06 17:29:31 +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
Lluis Sanchez c99594ef82 2004-11-18 Lluis Sanchez Gual <[email protected]>
* RoleProvider.cs, Roles.cs, SqlRoleProvider.cs, RoleProviderCollection.cs,
	AccessRoleProvider.cs: IRoleProvider has been renamed to ProviderBase.
	* IMembershipProvider.cs: Deleted.
	* MembershipProvider.cs, AccessMembershipProvider.cs, MembershipUser.cs,
	Membership.cs, ADMembershipProvider.cs, SqlMembershipProvider.cs
	MembershipProviderCollection.cs: MembershipProvider has been deleted
	and replaced by the abstract class MembershipProvider.
	* MembershipProviderCollection.cs: Minor fixes.
	* ADMembershipProvider.cs: Renamed to ActiveDirectoryMembershipProvider.cs.


svn path=/trunk/mcs/; revision=36274
2004-11-18 14:32:06 +00:00
Lluis Sanchez 71ca93f6de * RoleProviderCollection.cs, MembershipProviderCollection.cs:
Fixed warnings.

svn path=/trunk/mcs/; revision=36152
2004-11-15 22:21:27 +00:00
Raja R Harinath 97553bb62e cvs ignores, sorry about the spam
svn path=/trunk/mcs/; revision=33874
2004-09-14 09:59:51 +00:00
Gonzalo Paniagua Javier d5a52eb629 2004-08-23 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: patch by Jim Pease to fix the date on renewal.

svn path=/trunk/mcs/; revision=32708
2004-08-23 16:07:21 +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
Sanja Gupta cf3e18f829 ChangeLog: Updated ChangeLog.
MembershipSortOptions.cs:
MembershipPasswordFormat.cs:
MembershipOnlineStatus.cs:
MembershipCreateStatus.cs:
CookieProtection.cs: minor modifications.

svn path=/trunk/mcs/; revision=31800
2004-08-03 13:36:46 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Pedro Martínez Juliá 092ed65642 2004-06-12 Pedro Mart�nez Juli� <[email protected]>
* FormsAuthentication.cs: Undo last change.

svn path=/trunk/mcs/; revision=29423
2004-06-12 19:49:16 +00:00
Pedro Martínez Juliá da96842784 2004-06-12 Pedro Mart�nez Juli� <[email protected]>
* FormsAuthentication.cs: go to loginUrl from web.config settings               before try with the default ones.

-- MISTAKE --

svn path=/trunk/mcs/; revision=29422
2004-06-12 19:43:52 +00:00
Pedro Martínez Juliá ec20c001c4 2004-06-12 Pedro Mart�nez Juli� <[email protected]>
* FormsAuthentication.cs: go to loginUrl from web.config settings               before try with the default ones.

svn path=/trunk/mcs/; revision=29421
2004-06-12 19:41:52 +00:00
Gonzalo Paniagua Javier ae7b210e4f 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: change/restore the IPrincipal in their
	own methods and make them internal.

	* System.Web.Security/DefaultAuthenticationModule.cs: set the IPrincipal
	for this thread once we have a user. Fixes bug #59683.

svn path=/trunk/mcs/; revision=29248
2004-06-11 01:24:35 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Gonzalo Paniagua Javier 9d76a57969 Warnings
svn path=/trunk/mcs/; revision=25814
2004-04-22 03:07:54 +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 07d221151b 2004-01-23 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: added RequireSSL and SlidingExpiration.

svn path=/trunk/mcs/; revision=22422
2004-01-23 08:54:35 +00:00
Andreas N 24b952db75 2004-01-11 Andreas Nahr <[email protected]>
* PassportIdentity.cs: Added v 1.1 members

svn path=/trunk/mcs/; revision=21938
2004-01-11 13:48:12 +00:00
Ben Maurer 6659397e03 2003-11-25 Ben Maurer <[email protected]>
* AccessMembershipProvider.cs: New v2 file
	* AccessRoleProvider.cs: New v2 file
	* ADMembershipProvider.cs: New v2 file
	* AnonymousIdentificationEventArgs.cs: New v2 file
	* AnonymousIdentificationEventHandler.cs: New v2 file
	* AnonymousIdentificationModule.cs: New v2 file
	* CookieProtection.cs: New v2 file
	* IMembershipProvider.cs: New v2 file
	* IRoleProvider.cs: New v2 file
	* Membership.cs: New v2 file
	* MembershipCreateStatus.cs: New v2 file
	* MembershipCreateUserException.cs: New v2 file
	* MembershipOnlineStatus.cs: New v2 file
	* MembershipPasswordException.cs: New v2 file
	* MembershipPasswordFormat.cs: New v2 file
	* MembershipProviderCollection.cs: New v2 file
	* MembershipSortOptions.cs: New v2 file
	* MembershipUser.cs: New v2 file
	* MembershipUserCollection.cs: New v2 file
	* RoleManagerEventArgs.cs: New v2 file
	* RoleManagerEventHandler.cs: New v2 file
	* RoleManagerModule.cs: New v2 file
	* RolePrincipal.cs: New v2 file
	* RoleProviderCollection.cs: New v2 file
	* Roles.cs: New v2 file
	* SqlMembershipProvider.cs: New v2 file
	* SqlRoleProvider.cs: New v2 file

svn path=/trunk/mcs/; revision=20447
2003-11-26 03:33:43 +00:00
Gonzalo Paniagua Javier 817a717054 2003-11-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs:
	* System.Web/HttpResponse.cs:
	* System.Web/HttpUtility.cs:
	* System.Web/HttpValueCollection.cs: encoding fixes/updates.

	* System.Web/HttpWriter.cs: when updating the encoding, flush the
	existing stream. Encoding updates.

	* System.Web.Compilation/AspGenerator.cs: use fileEncoding from
	configuration files.

	* System.Web.Compilation/PageCompiler.cs: add assign statements for
	ContentType, ResponseEncoding and CodePage if supplied.

	* System.Web.Configuration/GlobalizationConfiguration.cs: added
	GetInstance method.

	* System.Web.Configuration/GlobalizationConfigurationHandler.cs: warn
	about unsupported encodings and provide reasonable defaults.

	* System.Web.Security/FormsAuthentication.cs: encoding updates.
	* System.Web.UI/LosFormatter.cs: encoding updates.
	* System.Web.UI/Page.cs: implemented CodePage and ContentType.
	* System.Web.UI/PageParser.cs: handle CodePage, ContentEncoding and
	ResponseEncoding attributes.

	* System.Web.Util/WebEncoding.cs: added properties to access
	configuration files encoding.

svn path=/trunk/mcs/; revision=19641
2003-11-05 07:49:02 +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 c5d0c4f249 2003-08-27 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: when the request is completed or an
	error happens, execute all the delegates attached to EndRequest, not
	only the last one. This makes xsp/test/authtest work again.

	* System.Web/HttpMethodNotAllowedHandler.cs: fixed description for http
	status code.

	* System.Web.Security/UrlAuthorizationModule.cs: fixed description for
	status code.

	* System.Web.Util/UrlUtils.cs: made Reduce work when a "/" is passed.

svn path=/trunk/mcs/; revision=17655
2003-08-27 08:12:52 +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 4cd75e5715 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
* UrlAuthorizationModule.cs: tell the application not to run any other
	step apart from EndRequest.

svn path=/trunk/mcs/; revision=11539
2003-02-13 00:55:42 +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 3d1ea510c1 2002-12-18 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: implemented GetAuthCookie, SetAuthCookie,
	SignOut, FormsCookieName and FormsCookiePath.

svn path=/trunk/mcs/; revision=9742
2002-12-18 03:28:02 +00:00
Gonzalo Paniagua Javier dcfad7ede7 2002-12-17 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: implemented Authenticate, unencrypted Encrypt
	and Decrypt, HashPasswordForStoringInConfigFile and Initialize.

	* FormsAuthenticationTicket.cs: set cookiePath to the default when no
	other provided.

svn path=/trunk/mcs/; revision=9722
2002-12-17 04:44:49 +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
Gonzalo Paniagua Javier b90100aed8 2002-06-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpBrowserCapabilities.cs: stubbed out.

	* System.Web.Configuration/HttpCapabilitiesBase.cs: New file.

	* System.Web.Security/DefaultAuthenticationEventArgs.cs: New file.

	* System.Web.SessionState/IReadOnlySessionState.cs: New file.

	* System.Web.SessionState/IRequiresSessionState.cs: New file.

	* System.Web.SessionState/SessionStateMode.cs: New file.

	* System.Web.UI/Page.cs:
	(FileDependencies): now is public public.
	(EnableViewStateMAC): uncommented and made protected.
	(GetTypeHashCode): added method.

	* System.Web.UI.HtmlControls/HtmlForm.cs:
	(RenderAttributes): changed new by override.
	(Name): allow setting the property.

	* System.Web.UI.WebControls/WebControl.cs: added attributes
	PersistChildrenAttribute and ParseChildrenAttribute.

	* System.Web.Configuration/ChangeLog:
	* System.Web.Configuration/HttpCapabilitiesBase.cs:
	* System.Web.Security/ChangeLog:
	* System.Web.Security/DefaultAuthenticationEventArgs.cs:
	* System.Web.SessionState/ChangeLog:
	* System.Web.SessionState/IReadOnlySessionState.cs:
	* System.Web.SessionState/IRequiresSessionState.cs:
	* System.Web.SessionState/SessionStateMode.cs: new files.

	Now we are able to compile some files generated by xsp with our
	System.Web classes.

svn path=/trunk/mcs/; revision=5102
2002-06-03 20:41:49 +00:00
Gaurav Vaish 2d27a32071 2002-03-26 Gaurav Vaish <[email protected]>
* Removed all the files. Making place for someone other to contribute.
  I am not in a position, right now, to look after this. It's screwing
  me up...

svn path=/trunk/mcs/; revision=3343
2002-03-26 02:38:49 +00:00
Gaurav Vaish ea05be005d 2002-03-17 Gaurav Vaish <[email protected]>
* Yups! Another milestone reached. System.Web assembly build successfully.

svn path=/trunk/mcs/; revision=3156
2002-03-17 04:44:47 +00:00
Gaurav Vaish ccede98fee 2002-03-05 Gaurav Vaish <[email protected]>
* ChangeLog:  My frustration appears here.

------------------------------------------------------------------
------------------------------------------------------------------
I AM TOTALLY SCREWED UP. NO GUESSES WHATSOEVER ON WHAT TO DO NOW!!
------------------------------------------------------------------
------------------------------------------------------------------

svn path=/trunk/mcs/; revision=2904
2002-03-05 11:48:06 +00:00
Gaurav Vaish 640cca0055 2002-03-05 Gaurav Vaish <[email protected]>
* I am screwed up. I will now go back and read some theory and develop
  some architecture before I proceed on.

svn path=/trunk/mcs/; revision=2903
2002-03-05 11:46:49 +00:00
Gaurav Vaish 3e6b661ec5 2002-03-05 Gaurav Vaish <[email protected]>
* *.cs -- *EventHandler.cs - Minor Corrections.

* Others -- Either complete, or first draft.

* ChangeLog, TODO -- Updated in accordance.

svn path=/trunk/mcs/; revision=2900
2002-03-05 11:17:46 +00:00