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