Commit Graph
120 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 9b7f969cf0 2007-03-20 Marek Habersack <[email protected]>
* FormsAuthentication.cs, Roles.cs: remove roles cookie on sign
	out. Fixes bug #81195. Patch from Mike Morano <[email protected]>.


svn path=/trunk/mcs/; revision=74670
2007-03-20 08:43:28 +00:00
Marek Habersack c02c6cefba 2007-03-12 Marek Habersack <[email protected]>
* RolePrincipal.cs: decrypt the roles ticket properly. Makes role
	caching in cookies work. Fixes bug #81117. Patch from Mike Morano
	<[email protected]>

svn path=/trunk/mcs/; revision=74101
2007-03-12 08:45:38 +00:00
Marek Habersack 3f575470f5 Fix user creation, password reset etc.
svn path=/trunk/mcs/; revision=73634
2007-03-02 13:23:52 +00:00
Andreia Gaita c1bfc5b0b3 * SqlRoleProvider.cs: Fix parameter binding to stored procedures.
* SqlMembershipProvider.cs: Fix parameter binding to stored procedures.
CreateUser() doesn't use transactions in MS asp.net, so removed the 
transaction calls.

2007-02-28  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=73522
2007-02-28 03:40:17 +00:00
Vladimir Krasnov 7e51184404 * RoleManagerModule.cs: fixed role chaching in OnEndRequest and OnPostAuthenticateRequest
* RolePrincipal.cs: implemented ToEncryptedTicket, implemented caching role functionality
* Roles.cs: implemented DeleteCookie, fixed CookieProtectionValue to get it's value from configuration

svn path=/trunk/mcs/; revision=73110
2007-02-19 12:41:56 +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
Marek Habersack 89e5d0fc4e Do not clear the password before encryption
svn path=/trunk/mcs/; revision=72473
2007-02-08 13:04:45 +00:00
Miguel de Icaza 6b4c7232fd * SiteMapNode.cs (GetExplicitResourceString): implement.
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.

        * StaticFileHandler.cs (ProcessRequest): remove unused variable.

        * HttpApplication.cs (ProcessError): Remove unused variable.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ClientBuildManager.cs: Remove unused variable (this could be a
        real problem, we never use the appPhysicalTargetDir)

        * AssemblyBuilder.cs: Remove unused field.

        * AppResourceFilesCollection.cs: Remove unused field.

        * TemplateControlCompiler.cs (GetExpressionFromString): Remove
        unused variable.

        * AppResourcesCompiler.cs: Remove unused variable.

        * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
        parameter.

        * PageCompiler.cs: Put InternalCreatePageProperty inside the
        NET_2_0 block to eliminate warnings.

2007-01-20  Miguel de Icaza  <[email protected]>

        * HandlerFactoryConfiguration.cs (LoadType): remove unused
        variable.
        (ctor): do not assign parent, we do not use it, keep the code for
        reference.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ApplicationManager.cs: Remove unused variable.
        (ShutdownAll) remove unused variables.

        * ApplicationHost.cs: Protect create_dir lock

2007-01-20  Miguel de Icaza  <[email protected]>

        * SqlRoleProvider.cs: comment out unused code.

        * SqlMembershipProvider.cs: Removed unused variables.
        Remove unused variable.

        * AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
        remove unused variable.   This might be a real bug.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionStateModule.cs: Removed unused variables.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionDictionary.cs: Removed unused variable (dirty).

2007-01-20  Miguel de Icaza  <[email protected]>

        * XhtmlTextWriter.cs: comment out unused code.

        * ThemeProvider.cs: comment out unused code.

        * DataSourceView.cs: Comment unused variable.

        * ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
        code

        * Control.cs: Put _templateControl inside the NET_2_0 ifdef

2007-01-20  Miguel de Icaza  <[email protected]>

        * HtmlHead.cs: comment out unused code, in particular metadata is
        commented out because nothing could have triggered its creation.

        * HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.

2007-01-20  Miguel de Icaza  <[email protected]>

        * DataControlFieldCollection.cs (RemoveAt): remove unused
        variable.

        * RoleGroupCollection.cs (OnValidate): Flag as protected, as it
        should not show up.

        * RadioButton.cs (RaisePostDataChangedEvent): This method was not
        used in 1.0, so put the whole method in 2.0

2007-01-20  Miguel de Icaza  <[email protected]>

        * WebPart.cs: Remove

        * PersonalizableAttribute.cs: Remove extra API that was wrong as well.

2006-11-28  Miguel de Icaza  <[email protected]>

        * WebPart.cs:

2007-01-20  Miguel de Icaza  <[email protected]>

        * FileUtils.cs (CreateTemporaryFile): Remove unused variable.



svn path=/trunk/mcs/; revision=71399
2007-01-20 22:42:04 +00:00
Vladimir Krasnov 07c1ad4ae2 * RoleManagerModule.cs: fixed OnPostAuthenticateRequest, CacheRolesInCookie not supported yet
* Roles.cs: fixed DeleteCookie, CacheRolesInCookie not supported yet

svn path=/trunk/mcs/; revision=71157
2007-01-16 17:44:01 +00:00
Adar Wesley 5a69722285 2007-01-11 Adar Wesley <[email protected]>
* MembershipProvider.cs: fixed EncryptPassword to use password buffer length


svn path=/trunk/mcs/; revision=70851
2007-01-11 12:09:27 +00:00
Vladimir Krasnov 1b1355d37c * AnonymousIdentificationModule.cs: fixed OnEnter, fixed failure on incorrect cookie value that browser may hold
svn path=/trunk/mcs/; revision=70486
2007-01-04 16:32:53 +00:00
Vladimir Krasnov 14ba6ea5ce * FormsAuthentication.cs: added internal ReturnUrl property, GetRedirectUrl added usage of ReturnUrl
* Login.cs: fixed AuthenticateUser, should redirect to ReturnUrl when

svn path=/trunk/mcs/; revision=70124
2006-12-27 14:04:34 +00:00
Vladimir Krasnov 947f8275d0 * FormsAuthentication.cs: TARGET_J2EE define for static members
svn path=/trunk/mcs/; revision=69411
2006-12-12 16:31:21 +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
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