* 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
* 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
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
* 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
* 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
* 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
* DefaultAuthenticationModule.cs (OnDefaultAuthentication): always
set Thread.CurrentPrincipal, not just if we set it to the
GenericPrincipal.
svn path=/trunk/mcs/; revision=58372
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* FormsAuthentication.cs: Hash the UTF8 representation of the password
strings (to be compatible with Microsoft implementation).
svn path=/trunk/mcs/; revision=44878
* 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
* 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
* FormsAuthenticationModule.cs: allow accessing other files in the
directory where the login page is. Fixes bug #71871.
svn path=/trunk/mcs/; revision=39947
* 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