Commit Graph
133 Commits
Author SHA1 Message Date
Vladimir Krasnov c52f63d229 * FormsAuthentication.cs: improved performance of GetHexString()
svn path=/trunk/mcs/; revision=80615
2007-06-24 09:06:39 +00:00
Vladimir Krasnov 16a521094d * SqlMembershipProvider.cs: fixed DeleteUser, fixed parameter name
svn path=/trunk/mcs/; revision=77523
2007-05-17 08:00:36 +00:00
Igor Zelmanovich 792f238938 2007-05-14 Igor Zelmanovich <[email protected]>
* SqlMembershipProvider.cs: Fix parameter binding to stored procedures.

svn path=/trunk/mcs/; revision=77349
2007-05-14 14:04:10 +00:00
Igor Zelmanovich c9d826eede 2007-05-09 Igor Zelmanovich <[email protected]>
* ApplicationHost.cs:
	added MonoNotSupported attribute for TARGATE_JVM.	

	* PassportIdentity.cs:
	added MonoNotSupported attribute.	

svn path=/trunk/mcs/; revision=77015
2007-05-09 14:02:14 +00:00
Marek Habersack fa6c9709cf 2007-05-02 Marek Habersack <[email protected]>
* FormsAuthentication.cs: user names are stored in lowercase in
	the credentials database.

svn path=/trunk/mcs/; revision=76551
2007-05-01 22:15:44 +00:00
Igor Zelmanovich 3efe18aa52 2007-04-29 Igor Zelmanovich <[email protected]>
* FormsAuthenticationModule.cs: 
	Redirect to login page doesn't cause thread abort.	


svn path=/trunk/mcs/; revision=76462
2007-04-29 13:58:11 +00:00
Igor Zelmanovich 7808e05919 2007-04-19 Igor Zelmanovich <[email protected]>
* SqlMembershipProvider.cs:
	ChangePassword throws exception if new password has invalid format.	

2007-04-19 Igor Zelmanovich <[email protected]>

	* ChangePassword.cs:
	does not accept invalid new password.	


svn path=/trunk/mcs/; revision=75955
2007-04-19 15:05:39 +00:00
Igor Zelmanovich bcfee9c2de 2007-04-17 Igor Zelmanovich <[email protected]>
* Membership.cs:
	* Roles.cs:
	if default provider was not found ConfigurationErrorsException is thrown.

2007-04-17 Igor Zelmanovich <[email protected]>

	* ProfileManager.cs:
	if default provider was not found ConfigurationErrorsException is thrown.


svn path=/trunk/mcs/; revision=75832
2007-04-17 15:56:48 +00:00
Marek Habersack 768a6a8fc3 2007-04-12 Marek Habersack <[email protected]>
* RoleManagerModule.cs: do not try to decrypt encryption tickets
	from cookies with empty values.


svn path=/trunk/mcs/; revision=75647
2007-04-12 14:00:16 +00:00
Konstantin Triger c1360afb03 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75429
2007-04-05 11:43:27 +00:00
Juraj Skripsky 6bba516937 2007-04-04 Juraj Skripsky <[email protected]>
* FormsAuthenticationModule.cs: Move initialization of _config out
        of Init() as app.Context is null in that method when a session is
        about to be terminated.

svn path=/trunk/mcs/; revision=75387
2007-04-04 13:54:51 +00:00
Konstantin Triger 556c3d5096 revert r74728 since it breaks layered authorization
svn path=/trunk/mcs/; revision=74800
2007-03-22 12:43:33 +00:00
Vladimir Krasnov 9d956563c6 * AnonymousIdentificationModule.cs: optimized Config property
svn path=/trunk/mcs/; revision=74733
2007-03-21 13:54:08 +00:00
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