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