12 Commits
Author SHA1 Message Date
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Sebastien Pouliot a22389fde2 Normalization of cryptographic uses in asp.net
* System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:
Remove key length check and generic key generation.

* System.Web.Configuration_2.0/MachineKeySection.cs: Add support for 4.0
ValidationAlgorithm and the use of custom algorithms (validation and
decryption). Allow the use of any, valid, key length (based on the
algorithm). Let each algorithm creates its own key (e.g. special needs,
default length...)

* System.Web.Configuration_2.0/MachineKeySectionUtils.cs: Remove key
generation (from random) code and 192bits key length hack (won't work
with custom algorithms). Add support for new (4.0) algorithms, including
custom ones. Provide uniform/shared code to Encrypt/Decrypt, Sign/Verify
and EncryptSign/VerifyDecrypt using MachineKeySection data.

* System.Web.Configuration_2.0/MachineKeyValidation.cs: Add new (4.0)
values.

* System.Web.Configuration_2.0/MachineKeyValidationConverter.cs: Add
support for new (4.0) algorithms.

* System.Web.Handlers/AssemblyResourceLoader.cs: Use the new common
cryptographic code and base64 the encrypted data.

* System.Web.Security/FormsAuthentication.cs: Use the new common
cryptographic code and base64 the signed and/or encrypted data.

* System.Web.Security/MembershipHelper.cs: Use the new common
cryptographic code - this should be 100% compatible with existing data.

* System.Web.Security/RolePrincipal.cs: Use the new common cryptographic
code.

* System.Web.Security/SqliteMembershipProvider.cs: Adapt code for
internal API change.

* System.Web.UI/LosFormatter.cs: Adapt code for internal API change.
Fix some small behaviro changes wrt NET_4_0

* System.Web.UI/ObjectStateFormatter.cs: Use the new common cryptographic
code.

* System.Web.UI/Page.cs: Remove code that is now unneeded (with the new
common cryptogrraphic code).

* System.Web.Configuration_2.0/MachineKeyCompatibilityMode.cs: New.

* Test/System.Web.Configuration/MachineKeyValidationConverterTest.cs:
Add more, mostly 4.0, test cases.

* Test/System.Web.Security/FormsAuthenticationTest.cs: Add test case to
ensure HashPasswordForStoringInConfigFile is not case sensitive.

* Test/System.Web.UI/LosFormatterTest.cs: Add some rountrip test cases
with the different ctors
2010-10-12 11:38:47 -04:00
Sebastien Pouliot f9d87bdedd Fix (likely copy-paste) typo on FormsAuthPasswordFormat
* System.Web.Security/FormsAuthentication.cs: Fix typo (MD5->SHA1).
I suspect the later is not used very much by mono users

* Test/System.Web.Security/FormsAuthenticationTest.cs: Small change to
make sure the hash name is not case sensitive
2010-10-04 11:41:22 -04:00
Gert Driesen e50614b48d * FontUnitTest.cs: Added test to verify locale dependent behavior of
FontUnit(string) ctor.
* FontUnit.cs: Fixed ToString () to use current locale. 
* FormsAuthenticationTest.cs: Fixed build using csc 1.x.

svn path=/trunk/mcs/; revision=72577
2007-02-10 13:24:08 +00:00
Igor Zelmanovich 5ff3132b30 2006-12-10 Igor Zelmanovich <[email protected]>
* FormsAuthenticationTest.cs: fixed tests.


svn path=/trunk/mcs/; revision=69284
2006-12-10 16:35:24 +00:00
Igor Zelmanovich 07ed73dc4a 2006-11-29 Igor Zelmanovich <[email protected]>
* CreateUserWizardTest.cs: fixed NunitWeb tests.
	* DetailsViewTest.cs: fixed NunitWeb tests.
	* FormParameterTest.cs: fixed NunitWeb tests.
	* FormViewTest.cs: fixed NunitWeb tests.
	* MenuTest.cs: fixed NunitWeb tests.
	* WizardStepBaseTest.cs: fixed NunitWeb tests.
	* XmlDataSourceTest.cs: fixed NunitWeb tests.
	* PageTest.cs: fixed NunitWeb tests.
	* FormsAuthenticationTest.cs: fixed NunitWeb tests.
	* StaticSiteMapProviderTest.cs: fixed NunitWeb tests.


svn path=/trunk/mcs/; revision=68673
2006-11-29 17:10:08 +00:00
Yoni Klain d6560d7b46 Added a NotDotNet category attribute for tests that pass on mono and do not pass on .NET, yet the difference in behavior is reasonable.
svn path=/trunk/mcs/; revision=67212
2006-11-01 13:07:32 +00:00
Boris Kirzner 90e9d0c91c Fixes for NET_2_0 tests run for TARGET_JVM
svn path=/trunk/mcs/; revision=64854
2006-09-04 11:45:52 +00:00
Andrew Skiba cf2c07886a fix 2 testcases
svn path=/trunk/mcs/; revision=62392
2006-07-10 12:16:41 +00:00
Sebastien Pouliot 8cd0472445 2005-09-21 Sebastien Pouliot <[email protected]>
* FormsAuthenticationTest.cs: CookieDomain property (2.0) changed from
	String.Empty (beta2) to null (RC).
	* MembershipProviderTest.cs: New. Mostly* useless test cases (* well 
	in proves it cannot be tested without providers and some extra infra).
	* RolePrincipalTest.cs: : New. Mostly* useless test cases (* well 
	in proves it cannot be tested without providers and some extra infra).


svn path=/trunk/mcs/; revision=50441
2005-09-22 03:39:16 +00:00
Sebastien Pouliot bdd827418c Tests
svn path=/trunk/mcs/; revision=48935
2005-08-26 22:52:45 +00:00
Sebastien Pouliot 36f5ada034 In Test/System.Web.Security:
2005-05-21  Sebastien Pouliot  <[email protected]>

	* FormsAuthenticationTest.cs: New. Unit tests for FormsAuthentication.
In .:
2005-05-21  Sebastien Pouliot  <[email protected]>

	* System.Web_test.dll.sources: Added tests for FormsAuthentication.


svn path=/trunk/mcs/; revision=44879
2005-05-22 00:34:04 +00:00