* 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
* 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
password is checked, properties MinRequiredPasswordLength and
MinRequiredNonAlphanumericCharacters are considered.
svn path=/trunk/mcs/; revision=64618
* 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