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