* MembershipProvider.cs (GetAlg): switch from Exception to
[mono.git] / mcs / class / System.Web / System.Web.Security / ChangeLog
1 2006-05-01  Chris Toshok  <toshok@ximian.com>
2
3         * MembershipProvider.cs (GetAlg): switch from Exception to
4         ProviderException to match MS behavior (and fix the unit test.)
5
6         * Membership.cs (GeneratePassword): implement.
7
8 2006-05-01  Chris Toshok  <toshok@ximian.com>
9
10         * SqlMembershipProvider.cs: lots more work.  checking this in in
11         its present state because I don't want to lose it.  It still needs
12         work.
13         
14         * Membership.cs (.cctor): remove the fallback.
15         (ValidatingPassword): remove the MonoTODO.
16
17         * MembershipProvider.cs (DecryptPassword): implement.
18         (EncryptPassword): implement.
19         (GetAlg): helper function for Decrypt/EncryptPassword.
20         (InitVector): same.
21
22 2006-04-27  Chris Toshok  <toshok@ximian.com>
23
24         * SqlMembershipProvider.cs (GeneratePassword): call
25         Membership.GeneratePassword with the configured minimum strength
26         requirements.
27
28 2006-04-27  Chris Toshok  <toshok@ximian.com>
29
30         * SqlMembershipProvider.cs (UnlockUser): fix sql query, and move
31         the CheckPararm call to the top of the method.
32
33 2006-04-12  Chris Toshok  <toshok@ximian.com>
34
35         * SqlMembershipProvider.cs: commit initial pass at
36         SqlMembershipProvider work.  lots of stuff untested in here.
37
38 2006-04-11  Chris Toshok  <toshok@ximian.com>
39
40         * MembershipUser.cs (.ctor): per Shackow's book, all DateTime's
41         are converted using ToUniversalTime when passed into this class.
42         (UpdateSelf): update ourselves from the passed in MembershipUser,
43         swallowing NotSupportedExceptions.
44         (UpdateUser): fetch a new MembershipUser from the db and call
45         UpdateSelf with it.
46         (ChangePassword): call UpdateUser after changing the password.
47         (ChangePasswordQuestionAndAnswer): same.
48         (ResetPassword): same.
49         (UnlockUser): same.  Also, don't explicitly set isLockedOut.
50         It'll be updated in UpdateSelf.
51         (CreationDate): getter calls ToLocalTime, setter calls
52         ToUniversalTime.
53         (LastActivityDate): same.
54         (LastLoginDate): same.
55         (LastPasswordChangedDate): same.
56         (LastLockoutDate): same.
57         
58         * Membership.cs (.cctor): use
59         ProvidersHelper.InstantitateProviders, and remove some unnecessary
60         #if NET_2_0's.
61
62 2006-03-29  Chris Toshok  <toshok@ximian.com>
63
64         * SqlRoleProvider.cs: do the LOWER's in SQL, not in C#.
65
66 2006-03-23  Chris Toshok  <toshok@ximian.com>
67
68         * Roles.cs: make this 2.0 configuration aware.
69
70         * SqlRoleProvider.cs: flesh out all the operations.  the only
71         things that need dealing with are the Initialize method's handling
72         of a few parameters, and the ApplicationName property.
73
74 2006-03-23  Chris Toshok  <toshok@ximian.com>
75
76         * DefaultAuthenticationModule.cs (OnDefaultAuthentication): always
77         set Thread.CurrentPrincipal, not just if we set it to the
78         GenericPrincipal.
79
80 2006-03-22  Chris Toshok  <toshok@ximian.com>
81
82         * RoleManagerModule.cs: implement using info in Shackow's book.
83
84         * RolePrincipal.cs: flesh this out a bit more.
85
86         * DefaultAuthenticationModule.cs (OnDefaultAuthentication):
87         according to Shackow's book, this sets Thread.CurrentPrincipal as
88         well as HttpContext.Current.User.
89
90 2006-02-28  Chris Toshok  <toshok@ximian.com>
91
92         * FormsAuthentication.cs: corcompare work.
93
94         * MembershipCreateUserException.cs: same.
95
96         * MembershipPasswordException.cs: same.
97
98         * AnonymousIdentificationModule.cs: same.
99
100 2006-02-01  Chris Toshok  <toshok@ximian.com>
101
102         * FormsAuthentication.cs, Membership.cs,
103         FormsAuthenticationModule.cs, UrlAuthorizationModule.cs: oops,
104         replace GetWebApplicationSection with GetSection.
105         
106 2006-02-01  Chris Toshok  <toshok@ximian.com>
107
108         * FormsAuthentication.cs: CONFIGURATION_2_0 => NET_2_0.
109         simplifies the ifdef mess quite a bit.
110
111         * Membership.cs: same.
112
113         * FormsAuthenticationModule.cs: same.
114
115         * UrlAuthorizationModule.cs: same.
116
117 2006-01-04  Chris Toshok  <toshok@ximian.com>
118
119         * FormsAuthentication.cs (Authenticate): add CONFIGURATION_2_0
120         code.
121         (Decrypt2): same.
122         (Decrypt): same.
123         (Encrypt): same.
124         (Initialize): same.
125
126 2006-01-04  Chris Toshok  <toshok@ximian.com>
127
128         * Membership.cs (.cctor): enable the code here under
129         CONFIGURATION_2_0.
130
131 2006-01-03  Chris Toshok  <toshok@ximian.com>
132
133         * UrlAuthorizationModule.cs (OnAuthorizeRequest): add
134         CONFIGURATION_2_0 code here.
135
136 2005-12-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
137
138         * FormsAuthentication.cs: don't end the request in
139         RedirectFromLoginPage.
140
141 2005-12-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
142
143         * FormsAuthenticationModule.cs: expire the cookie. Fixes bug #77043.
144         Patch by Cyrille Colin.
145
146 2005-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
147
148         * FormsAuthenticationModule.cs: ignore any exception thrown when mapping
149         the provided virtual path to the physical one. Patch by Cyrille Colin.
150
151 2005-11-28  Chris Toshok  <toshok@ximian.com>
152
153         * FormsAuthenticationModule.cs (OnAuthenticateRequest):
154         CONFIGURATION_2_0 work.
155         (OnEndRequest): same.
156
157 2005-09-09  Sebastien Pouliot  <sebastien@ximian.com>
158
159         * DefaultAuthenticationEventArgs.cs: Added LinkDemand for Minimal.
160         * DefaultAuthenticationModule.cs: Added LinkDemand for Minimal. Added
161         Demand for UnmanagedCode on constructor.
162         * FileAuthorizationModule.cs: Added LinkDemand for Minimal. Added 
163         Demand for UnmanagedCode on constructor.
164         * FormsAuthentication.cs: Added LinkDemand for Minimal.
165         * FormsAuthenticationEventArgs.cs: Added LinkDemand for Minimal.
166         * FormsAuthenticationModule.cs: Added LinkDemand for Minimal. Added 
167         Demand for UnmanagedCode on constructor.
168         * FormsAuthenticationTicket.cs: Added LinkDemand for Minimal.
169         * FormsIdentity.cs: Added LinkDemand for Minimal.
170         * PassportAuthenticationEventArgs.cs: Added LinkDemand for Minimal.
171         * PassportAuthenticationModule.cs: Added LinkDemand for Minimal. Added
172         Demand for UnmanagedCode on constructor.
173         * PassportIdentity.cs: Added LinkDemand for Minimal. Added Demand for
174         UnmanagedCode on constructor.
175         * UrlAuthorizationModule.cs: Added LinkDemand for Minimal. Added 
176         Demand for UnmanagedCode on constructor.
177         * WindowsAuthenticationEventArgs.cs: Added LinkDemand for Minimal.
178         * WindowsAuthenticationModule.cs: Added LinkDemand for Minimal. Added
179         Demand for UnmanagedCode on constructor.
180
181 2005-09-01  Sebastien Pouliot  <sebastien@ximian.com>
182
183         * FormsAuthenticationEventArgs.cs: Ensure the setter for User is 
184         protected by a demand for ControlPrincipal.
185         * PassportAuthenticationEventArgs.cs: Ensure the setter for User is
186         protected by a demand for ControlPrincipal.
187         * WindowsAuthenticationEventArgs.cs: Ensure the setter for User is 
188         protected by a demand for ControlPrincipal.
189
190 2005-08-25  Sebastien Pouliot  <sebastien@ximian.com> 
191  
192         * FormsAuthentication.cs: With 2.0 we can get the default properties 
193         and call Initialize without a NRE.
194
195 2005-08-25  Sebastien Pouliot  <sebastien@ximian.com>
196
197         * ActiveDirectoryConnectionProtection.cs: New (2.0) enum.
198         * ActiveDirectoryMembershipProvider.cs: Fixed 2.0 API.
199         * AnonymousIdentificationEventArgs.cs: Fixed AnonymousID property case.
200         * AnonymousIdentificationModule.cs: Fixed 2.0 API.
201         * FileAuthorizationModule.cs: Added static CheckFileAccessForUser in 
202         2.0 profile (TODO).
203         * FormsAuthentication.cs: Added missing 2.0 properties with their 
204         default values.
205         * MembershipCreateStatus.cs: Fixed enum values/names.
206         * MembershipProvider.cs: Added stub for [Decrypt|Encrypt]Password. Both
207         methods don't seems to work without an active provider.
208         * PassportIdentity.cs: Added IDispose for 2.0 profile.
209         * Roles.cs: Added missing beta2 bits and default values (which are the
210         only things working without a role provider (web.config).
211         * RolePrincipal.cs: Fixed 2.0 API. Implemented a few bits.
212         * SqlRoleProvider.cs: Fixed 2.0 API.
213         * UrlAuthorizationModule.cs: Added static CheckUrlAccessForPrincipal in
214         2.0 profile (TODO).
215
216 2005-08-24  Sebastien Pouliot  <sebastien@ximian.com>
217
218         * MembershipUserCollection.cs: Fix exceptions.
219
220 2005-08-22  Sebastien Pouliot  <sebastien@ximian.com>
221
222         * FormsAuthentication.cs: Add some 2.0 stuff required for Login* 
223         controls to compile.
224
225 2005-08-18  Sebastien Pouliot  <sebastien@ximian.com>
226
227         * Membership.cs: Commented unworking parts of the .cctor to allow 
228         testing the Login control.
229         * MembershipProviderCollection.cs: Fixed exception handling.
230         * SqlMembershipProvider.cs: Don't throw NotImplementedException 
231         everywhere so Membership's .cctor (somewhat) works. Removed 
232         Description property (not in beta2).
233
234 2005-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
235
236         * FormsAuthentication.cs: allow hardware acceleration support if
237         available. Sebastien dixit.
238
239 2005-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
240
241         * FormsAuthentication.cs: the init_vector must be the same accross
242         restarts, otherwise the cookie does not work even when a decryption
243         key is provided. Initialize it to the bytes of the cookie name. Fixes
244         bug #75635.
245
246 2005-07-25  Eyal Alaluf <eyala@mainsoft.com>
247
248         * FormsAuthenticationModule.cs: Check for null config
249
250 2005-07-25  Miguel de Icaza  <miguel@novell.com>
251
252         * FormsAuthentication.cs (SignOut): Force the cookie to have it
253         expire in the past.
254
255 2005-07-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
256
257         * FormsAuthentication.cs: my previous patch missed a "small" detail: it
258         didn't include the verification key when computing/checking the
259         validation hash. Now this is really a MAC or HMAC or...
260
261 2005-07-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
262
263         * FormsAuthentication.cs:
264         * FormsAuthenticationTicket.cs: added support for validation and
265         encryption of the auth. cookie and improved serialization of the ticket.
266
267 2005-07-01  Lluis Sanchez Gual <lluis@novell.com>
268
269         * Membership.cs: Read provider info from the config file.
270
271 2005-06-10 Lluis Sanchez Gual <lluis@novell.com>
272
273         * MembershipUserCollection.cs:
274         * MembershipPasswordException.cs:
275         * RoleProviderCollection.cs:
276         * ActiveDirectoryMembershipProvider.cs:
277         * SqlMembershipProvider.cs:
278         * MembershipProvider.cs:
279         * SqlRoleProvider.cs:
280         * Membership.cs:
281         * MembershipUser.cs:
282         * MembershipProviderCollection.cs:
283         * Roles.cs:.
284         * RoleProvider.cs: Track api changes in ASP.NET 2.0. Implemented
285         some missing methods.
286         
287         * AccessRoleProvider.cs:
288         * AccessMembershipProvider.cs: Removed.
289         
290         * MembershipCreateUserException.cs:
291         * MembershipValidatePasswordEventHandler.cs:
292         * ValidatePasswordEventArgs.cs: Implemented.
293
294 2005-05-21  Sebastien Pouliot  <sebastien@ximian.com>
295
296         * FormsAuthentication.cs: Hash the UTF8 representation of the password
297         strings (to be compatible with Microsoft implementation).
298
299 2005-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
300
301         * FormsAuthentication.cs:
302         * PassportAuthenticationModule.cs:
303         * WindowsAuthenticationModule.cs: removed warnings.
304
305 2005-03-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
306
307         * FormsAuthenticationModule.cs: fix for bug 73545, which caused
308         authentication not to work when the cookie was not persistent.
309         Patch by Ilya Kharmatsky (Mainsoft).
310
311 2005-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
312
313         * FormsAuthentication.cs: make the string to be stored in a config.
314         file uppercase... See bug #72557.
315
316 2005-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
317
318         * FormsAuthentication.cs: fixed typo when getting the hash for the 
319         password in SHA1 and MD5. Thanks to Tadas Dailyda.
320         Lock on a static object instead of typeof(FormsAuthentication).
321
322 2004-11-18 Lluis Sanchez Gual <lluis@novell.com>
323
324         * RoleProvider.cs, Roles.cs, SqlRoleProvider.cs, RoleProviderCollection.cs,
325         AccessRoleProvider.cs: IRoleProvider has been renamed to ProviderBase.
326         * IMembershipProvider.cs: Deleted.
327         * MembershipProvider.cs, AccessMembershipProvider.cs, MembershipUser.cs,
328         Membership.cs, ADMembershipProvider.cs, SqlMembershipProvider.cs
329         MembershipProviderCollection.cs: MembershipProvider has been deleted
330         and replaced by the abstract class MembershipProvider.
331         * MembershipProviderCollection.cs: Minor fixes.
332         * ADMembershipProvider.cs: Renamed to ActiveDirectoryMembershipProvider.cs.
333
334 2004-11-15 Lluis Sanchez Gual <lluis@novell.com>
335
336         * RoleProviderCollection.cs, MembershipProviderCollection.cs: 
337         Fixed warnings.
338
339 2004-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
340
341         * FormsAuthentication.cs: patch by Jim Pease to fix the date on renewal.
342
343 2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
344
345         * FormsAuthenticationModule.cs: don't renew expired cookies. Only renew
346         the cookie if SlidingExpiration is set. Thanks to Jim Pease.
347
348 2004-08-03  Sanjay Gupta <gsanjay@novell.com>
349
350         * MembershipSortOptions.cs:
351         * MembershipPasswordFormat.cs:
352         * MembershipOnlineStatus.cs:
353         * MembershipCreateStatus.cs:
354         * CookieProtection.cs: minor modifications.
355
356 2004-06-12  Pedro Martnez Juli  <yoros@wanadoo.es>
357
358         * FormsAuthentication.cs: Undo last change.
359
360 2004-06-12  Pedro Martnez Juli  <yoros@wanadoo.es>
361
362         * FormsAuthentication.cs: go to loginUrl from web.config settings
363         before try with the default ones.
364
365 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
366
367         * DefaultAuthenticationModule.cs: set the IPrincipal for this thread
368         once we have a user. Fixes bug #59683.
369
370 2004-04-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
371
372         * FormsAuthenticationModule.cs: re-read configuration files if needed
373         when determining if forms auth. is used.
374
375 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
376
377         * FormsAuthentication.cs: added RequireSSL and SlidingExpiration.
378
379 2004-01-11  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
380
381         * PassportIdentity.cs: Added v 1.1 members
382
383 2003-11-25 Ben Maurer  <bmaurer@users.sourceforge.net>
384         
385         * AccessMembershipProvider.cs: New v2 file
386         * AccessRoleProvider.cs: New v2 file
387         * ADMembershipProvider.cs: New v2 file
388         * AnonymousIdentificationEventArgs.cs: New v2 file
389         * AnonymousIdentificationEventHandler.cs: New v2 file
390         * AnonymousIdentificationModule.cs: New v2 file
391         * CookieProtection.cs: New v2 file
392         * IMembershipProvider.cs: New v2 file
393         * IRoleProvider.cs: New v2 file
394         * Membership.cs: New v2 file
395         * MembershipCreateStatus.cs: New v2 file
396         * MembershipCreateUserException.cs: New v2 file
397         * MembershipOnlineStatus.cs: New v2 file
398         * MembershipPasswordException.cs: New v2 file
399         * MembershipPasswordFormat.cs: New v2 file
400         * MembershipProviderCollection.cs: New v2 file
401         * MembershipSortOptions.cs: New v2 file
402         * MembershipUser.cs: New v2 file
403         * MembershipUserCollection.cs: New v2 file
404         * RoleManagerEventArgs.cs: New v2 file
405         * RoleManagerEventHandler.cs: New v2 file
406         * RoleManagerModule.cs: New v2 file
407         * RolePrincipal.cs: New v2 file
408         * RoleProviderCollection.cs: New v2 file
409         * Roles.cs: New v2 file
410         * SqlMembershipProvider.cs: New v2 file
411         * SqlRoleProvider.cs: New v2 file
412
413 2003-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
414
415         * FormsAuthentication.cs: encoding updates.
416
417 2003-10-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
418
419         * FormsAuthenticationModule.cs: fixed for applications other than /.
420
421 2003-08-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
422
423         * UrlAuthorizationModule.cs: fixed description for status code.
424
425 2003-07-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
426
427         * FormsAuthenticationModule.cs: really renew the ticket. Thanks to
428         Jens Thiel <Jens@Thiel.DE>.
429
430 2003-02-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
431
432         * UrlAuthorizationModule.cs: tell the application not to run any other
433         step apart from EndRequest.
434
435 2003-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
436
437         * FormsAuthentication.cs: implemented RedirectFromLoginPage and
438         GetRedirectUrl.
439         
440         * FormsAuthenticationModule.cs: redirect to the login page when a 401
441         error happens.
442
443         * UrlAuthorizationModule.cs: check for valid user or render error page.
444
445 2003-01-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
446
447         * DefaultAuthenticationModule.cs: implemented. It just create a default 
448         unauthenticated user when no one else provided one.
449
450         * FormsAuthenticationModule.cs: removed debug output.
451
452 2002-12-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
453
454         * FormsAuthenticationModule.cs: remove debug lines.
455
456 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
457
458         * FormsAuthentication.cs: return a null ticket when an exception is
459         thrown creating it. Implemented RenewTicketIfOld.
460
461         * FormsAuthenticationModule.cs: implemented event handlers for
462         AuthenticateRequest and EndRequest.
463
464         * FormsAuthenticationTicket.cs: implemented SetDates and Clone methods.
465
466 2002-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
467
468         * FormsAuthentication.cs: implemented GetAuthCookie, SetAuthCookie,
469         SignOut, FormsCookieName and FormsCookiePath.
470
471 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
472
473         * FormsAuthentication.cs: implemented Authenticate, unencrypted Encrypt
474         and Decrypt, HashPasswordForStoringInConfigFile and Initialize.
475
476         * FormsAuthenticationTicket.cs: set cookiePath to the default when no
477         other provided.
478
479 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
480
481         * DefaultAuthenticationEventHandler.cs:
482         * DefaultAuthenticationModule.cs:
483         * FileAuthorizationModule.cs:
484         * FormsAuthentication.cs:
485         * FormsAuthenticationEventArgs.cs:
486         * FormsAuthenticationEventHandler.cs:
487         * FormsAuthenticationModule.cs:
488         * FormsAuthenticationTicket.cs:
489         * FormsIdentity.cs:
490         * PassportAuthenticationEventArgs.cs:
491         * PassportAuthenticationEventHandler.cs:
492         * PassportAuthenticationModule.cs:
493         * PassportIdentity.cs:
494         * UrlAuthorizationModule.cs:
495         * WindowsAuthenticationEventArgs.cs:
496         * WindowsAuthenticationEventHandler.cs:
497         * WindowsAuthenticationModule.cs: new files. Some of them implemented,
498         some others stubbed out.
499
500 2002-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
501
502         * DefaultAuthenticationEventArgs.cs: added file.
503