204 Commits
Author SHA1 Message Date
Miguel de Icaza 8616a7e405 2006-11-28 Miguel de Icaza <[email protected]>
* Rationalize the user of MonoTODOs.  

		- Removed all the TODOs that were only overwritten methods
		and had no further information.

		- Methods that threw exceptions now have the message "Not
		implemnted".

		- Methods that return some constant are declared like
		that.

		- Removed a bunch of stale MonoTODOs that had not been
		removed. 


svn path=/trunk/mcs/; revision=68620
2006-11-28 22:15:23 +00:00
Vladimir Krasnov 66f190fa42 * SqlMembershipProvider.cs: typo bug
svn path=/trunk/mcs/; revision=68504
2006-11-27 12:36:24 +00:00
Vladimir Krasnov c6aeee778e * SqlMembershipProvider.cs: fixed fixed exception type in GetPassword, checks user lockout
svn path=/trunk/mcs/; revision=68244
2006-11-21 10:31:20 +00:00
Igor Zelmanovich 9a9d91b1f5 svn path=/trunk/mcs/; revision=68184 2006-11-20 11:41:20 +00:00
Igor Zelmanovich 6ce6105ee1 2006-11-15 Igor Zelmanovich <[email protected]>
* SqlMembershipProvider.cs: fixed: name is used for ReturnValue parameter.


svn path=/trunk/mcs/; revision=67923
2006-11-15 14:25:28 +00:00
Vladimir Krasnov a30d31752c * AnonymousIdentificationModule.cs: fixed anonymous id cookie
svn path=/trunk/mcs/; revision=67375
2006-11-05 14:02:13 +00:00
Vladimir Krasnov 49aa6ea128 * MembershipProvider.cs, SqlMembershipProvider.cs: refactoring of DecryptPassword and EncryptPassword methods according to documentation
svn path=/trunk/mcs/; revision=67374
2006-11-05 13:32:07 +00:00
Konstantin Triger 18b4b47ac4 merge -r 65175:65176
svn path=/trunk/mcs/; revision=65226
2006-09-11 12:32:58 +00:00
Konstantin Triger 8c290ee6f3 merge -r 65172:65173
svn path=/trunk/mcs/; revision=65174
2006-09-10 14:44:38 +00:00
Vladimir Krasnov 6e96be9db1 * Membership.cs: fixed GetAllUsers, typo bug
* SqlRoleProvider.cs, SqlMembershipProvider.cs: refactored to use aspnetdb built in stored procedures,
fixed application name and membership relation,
improved exception handling

svn path=/trunk/mcs/; revision=64996
2006-09-06 11:43:47 +00:00
Igor Zelmanovich 113a8697ad instance can be serialized
svn path=/trunk/mcs/; revision=64802
2006-09-03 14:17:44 +00:00
Igor Zelmanovich c76635f8a5 fixed GetUser, when username is String.Empty method returns null.
svn path=/trunk/mcs/; revision=64792
2006-09-03 09:18:13 +00:00
Konstantin Triger 0d1a062fdd fixed initialization
svn path=/trunk/mcs/; revision=64640
2006-08-31 17:06:10 +00:00
Igor Zelmanovich 4b1fb66ced fixed CreateUser,
password is checked, properties MinRequiredPasswordLength and 
MinRequiredNonAlphanumericCharacters are considered.

svn path=/trunk/mcs/; revision=64618
2006-08-31 14:48:03 +00:00
Konstantin Triger 3304353a1f fix dispose order of reader vs connection
svn path=/trunk/mcs/; revision=64510
2006-08-29 13:36:15 +00:00
Igor Zelmanovich f42ce063fc fixed CreateUser, parameter isApproved is considered.
svn path=/trunk/mcs/; revision=64478
2006-08-28 15:55:54 +00:00
Konstantin Triger 7f499d5b52 * SqlMembershipProvider.cs: ensure GetUser() returns null if it cannot
retrieve user information

svn path=/trunk/mcs/; revision=64470
2006-08-28 12:18:44 +00:00
Konstantin Triger 81305af79f use SqlClientFactory in case the ProviderName is not specified
svn path=/trunk/mcs/; revision=64463
2006-08-28 08:16:05 +00:00
Konstantin Triger ad95e713e6 enable concurrent usage, refactoring
svn path=/trunk/mcs/; revision=64442
2006-08-27 15:31:03 +00:00
Konstantin Triger 9dcf63a8bd enable concurrent usage, refactoring
svn path=/trunk/mcs/; revision=64441
2006-08-27 15:20:52 +00:00
Vladimir Krasnov 12742fd81c * SqlMembershipProvider.cs: fixed ValidateUser, bug when user not exists
svn path=/trunk/mcs/; revision=64425
2006-08-27 07:09:39 +00:00
Gonzalo Paniagua Javier 44e73724f6 2006-08-14 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: set the Secure attribute of the authentication
	cookie when required.


svn path=/trunk/mcs/; revision=63729
2006-08-14 16:19:33 +00:00
Konstantin Triger 23a4ecd4f1 Ensure initialized, fix url mapping.
svn path=/trunk/mcs/; revision=62305
2006-07-06 09:48:02 +00:00
Chris Toshok 06d0f2af03 2006-05-03 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs (GetAlg): move this here for the time
	being, as it's the only class that uses it.
	(HashAndBase64Encode): nuke.
	(EncryptAndBase64Encode): nuke.
	(Base64DecodeAndDecrypt): nuke.
	(DecryptPassword): new function.
	(EncryptPassword): new function.
	(ChangePassword): replace the switch with a call to
	EncodePassword.
	(ChangePasswordQuestionAndAnswer): same.
	(CreateUser): same.
	(ResetPassword): same.
	(ValidateUsingPassword): same.
	(ValidateUsingPasswordAnswer): same.
	(GetPassword): same, and throw MembershipPasswordException if the
	password answer is incorrect.

	* MembershipProvider.cs (InitVector): nuke this.  it's actually
	the salt from the database (for the sql provider, anyway).
	(EncodePassword): based on the password format, password, and
	salt, encode it.  Makes use of EncryptPassword.
	(DecodePassword): likewise for decoding, makes use of
	DecryptPassword.
	(DecryptPassword): revert this to throwing
	NotImplementedException, as the sql provideroverrides it to
	perform the actual decryption.
	(EncryptPassword): same.


svn path=/trunk/mcs/; revision=60240
2006-05-03 22:14:51 +00:00
Chris Toshok 9a371dee3b 2006-05-02 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs: 85% complete, maybe more.  The major
	functionality should work.  Password retrieval (and encrypted
	passwords in general) is untested.


svn path=/trunk/mcs/; revision=60190
2006-05-02 18:09:49 +00:00
Chris Toshok 655febdcfa * Membership.cs (GeneratePassword): don't include quotes (',",`)
in the set of characters in the generated passwords.

2006-05-01  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=60133
2006-05-01 19:15:09 +00:00
Chris Toshok ae383bc1b6 * MembershipProvider.cs (GetAlg): switch from Exception to
ProviderException to match MS behavior (and fix the unit test.)

	* Membership.cs (GeneratePassword): implement.

2006-05-01  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=60131
2006-05-01 18:26:10 +00:00
Chris Toshok f570008c4c oops. committed the wrong revision
svn path=/trunk/mcs/; revision=60127
2006-05-01 17:55:08 +00:00
Chris Toshok f9bc30604e 2006-05-01 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs: lots more work.  checking this in in
	its present state because I don't want to lose it.  It still needs
	work.
	
	* Membership.cs (.cctor): remove the fallback.
	(ValidatingPassword): remove the MonoTODO.

	* MembershipProvider.cs (DecryptPassword): implement.
	(EncryptPassword): implement.
	(GetAlg): helper function for Decrypt/EncryptPassword.
	(InitVector): same.

	* SqlMembershipProvider.cs (GeneratePassword): call
	Membership.GeneratePassword with the configured minimum strength
	requirements.
2006-04-27  Chris Toshok  <[email protected]>

	* SqlMembershipProvider.cs (UnlockUser): fix sql query, and move
	the CheckPararm call to the top of the method.


svn path=/trunk/mcs/; revision=60126
2006-05-01 17:49:10 +00:00
Chris Toshok 66273fce26 2006-04-27 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs (UnlockUser): fix sql query.


svn path=/trunk/mcs/; revision=59992
2006-04-27 17:13:28 +00:00
Chris Toshok d874121651 2006-04-12 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs: commit initial pass at
	SqlMembershipProvider work.  lots of stuff untested in here.


svn path=/trunk/mcs/; revision=59426
2006-04-12 21:50:41 +00:00
Chris Toshok 6d74239f6f 2006-04-11 Chris Toshok <[email protected]>
* MembershipUser.cs (.ctor): per Shackow's book, all DateTime's
	are converted using ToUniversalTime when passed into this class.
	(UpdateSelf): update ourselves from the passed in MembershipUser,
	swallowing NotSupportedExceptions.
	(UpdateUser): fetch a new MembershipUser from the db and call
	UpdateSelf with it.
	(ChangePassword): call UpdateUser after changing the password.
	(ChangePasswordQuestionAndAnswer): same.
	(ResetPassword): same.
	(UnlockUser): same.  Also, don't explicitly set isLockedOut.
	It'll be updated in UpdateSelf.
	(CreationDate): getter calls ToLocalTime, setter calls
	ToUniversalTime.
	(LastActivityDate): same.
	(LastLoginDate): same.
	(LastPasswordChangedDate): same.
	(LastLockoutDate): same.
	
	* Membership.cs (.cctor): use
	ProvidersHelper.InstantitateProviders, and remove some unnecessary
	#if NET_2_0's.


svn path=/trunk/mcs/; revision=59361
2006-04-11 14:47:04 +00:00
Chris Toshok 83e41f5ebf 2006-03-29 Chris Toshok <[email protected]>
* SqlRoleProvider.cs: do the LOWER's in SQL, not in C#.


svn path=/trunk/mcs/; revision=58754
2006-03-29 19:27:46 +00:00
Chris Toshok b457248728 move some sql text to the start of the methods, and add a MonoTODO to DeleteRole
svn path=/trunk/mcs/; revision=58391
2006-03-23 21:50:38 +00:00
Chris Toshok 74504b1a44 * Roles.cs: make this 2.0 configuration aware.
* SqlRoleProvider.cs: flesh out all the operations.  the only
	things that need dealing with are the Initialize method's handling
	of a few parameters, and the ApplicationName property.

2006-03-23  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=58390
2006-03-23 21:47:44 +00:00
Chris Toshok e1458fde12 2006-03-23 Chris Toshok <[email protected]>
* DefaultAuthenticationModule.cs (OnDefaultAuthentication): always
	set Thread.CurrentPrincipal, not just if we set it to the
	GenericPrincipal.


svn path=/trunk/mcs/; revision=58372
2006-03-23 18:09:36 +00:00
Chris Toshok d7f68f2310 2006-03-22 Chris Toshok <[email protected]>
* RoleManagerModule.cs: implement using info in Shackow's book.

	* RolePrincipal.cs: flesh this out a bit more.

	* DefaultAuthenticationModule.cs (OnDefaultAuthentication):
	according to Shackow's book, this sets Thread.CurrentPrincipal as
	well as HttpContext.Current.User.


svn path=/trunk/mcs/; revision=58318
2006-03-22 20:34:58 +00:00
Chris Toshok af89946383 In System.Web.Configuration.Internal:
2006-02-28  Chris Toshok  <[email protected]>

	* IInternalConfigWebHost.cs: corcompare work.

In System.Web.Configuration_2.0:
2006-02-28  Chris Toshok  <[email protected]>

	* BuildProviderAppliesTo.cs, PagesToCountAction.cs: nuke.

In System.Web.Profile:
2006-02-28  Chris Toshok  <[email protected]>

	* ProfileBase.cs: corcompare work.

	* SqlProfileProvider.cs: add stubbed out file.

In System.Web.SessionState:
2006-02-28  Chris Toshok  <[email protected]>

	* SessionStateActions.cs: rename SessionStateActionFlags to this.

	* ISessionIDManager.cs: rename ISessionIDModule to this.

	* IStateRuntime.cs: corcompare work.

In System.Web.Security:
2006-02-28  Chris Toshok  <[email protected]>

	* FormsAuthentication.cs: corcompare work.

	* MembershipCreateUserException.cs: same.

	* MembershipPasswordException.cs: same.

	* AnonymousIdentificationModule.cs: same.

In System.Web.Configuration:
2006-02-28  Chris Toshok  <[email protected]>

	* FormsAuthPasswordFormat.cs: ifdef out the [Serializable] in the
	2.0 case.

In System.Web.Hosting:
2006-02-28  Chris Toshok  <[email protected]>

	* IAppDomainFactory.cs: corcompare work.

	* IAppManagerAppDomainFactory.cs: same

	* IISAPIRuntime.cs: same.

In System.Web.Management:
2006-02-28  Chris Toshok  <[email protected]>

	* SqlFeatures.cs: corcompare work

	* IRegiisUtility.cs: same.

	* WebEventFormatter.cs: same.

	* RuleFiringRecord.cs: same.

	* SessionStateType.cs: same.

	* WebApplicationInformtion.cs: same.

	* EventNotificationType.cs: same.

	* WebBaseEvent.cs: same.

	* IRegisterCreateITypeLib.cs: nuke


svn path=/trunk/mcs/; revision=57413
2006-02-28 18:56:23 +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
Chris Toshok 549bff7332 2006-01-04 Chris Toshok <[email protected]>
* FormsAuthentication.cs (Authenticate): add CONFIGURATION_2_0
	code.
	(Decrypt2): same.
	(Decrypt): same.
	(Encrypt): same.
	(Initialize): same.


svn path=/trunk/mcs/; revision=55053
2006-01-04 16:23:45 +00:00
Chris Toshok bc2719fe9c 2006-01-04 Chris Toshok <[email protected]>
* Membership.cs (.cctor): enable the code here under
	CONFIGURATION_2_0.


svn path=/trunk/mcs/; revision=55043
2006-01-04 07:08:25 +00:00
Chris Toshok 371dbd5167 2006-01-03 Chris Toshok <[email protected]>
* UrlAuthorizationModule.cs (OnAuthorizeRequest): add
	CONFIGURATION_2_0 code here.


svn path=/trunk/mcs/; revision=55038
2006-01-04 01:09:02 +00:00
Gonzalo Paniagua Javier fc52c911d8 2005-12-22 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: don't end the request in
	RedirectFromLoginPage.


svn path=/trunk/mcs/; revision=54719
2005-12-22 04:19:55 +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
Sebastien Pouliot 1e9ae3aae1 2005-09-01 Sebastien Pouliot <[email protected]>
* FormsAuthenticationEventArgs.cs: Ensure the setter for User is 
	protected by a demand for ControlPrincipal.
	* PassportAuthenticationEventArgs.cs: Ensure the setter for User is
	protected by a demand for ControlPrincipal.
	* WindowsAuthenticationEventArgs.cs: Ensure the setter for User is 
	protected by a demand for ControlPrincipal.


svn path=/trunk/mcs/; revision=49286
2005-09-01 18:26:20 +00:00