Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4009 for branches


Ignore:
Timestamp:
07/07/10 03:26:15 (14 years ago)
Author:
bfarka
Message:

fixed bugs in membership provider 32 out of 43 tests are now passing.. (#1046)

Location:
branches/HeuristicLab.Services.Authentication Prototype
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Services.Authentication Prototype/HeuristicLab.Services.Authentication Prototyp4.vsmdi

    r4002 r4009  
    66  <TestList name="membership" id="9537d6e4-abe1-473d-99f2-e92fd73d5d2f" parentListId="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
    77    <TestLinks>
     8      <TestLink id="870dcd03-5cb1-7419-38c6-922aadba3d83" name="AddUsersToRolesTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     9      <TestLink id="87879d13-77ad-9ad4-016a-e00a2c9ad877" name="ChangePasswordQuestionAndAnswerTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     10      <TestLink id="fe3e4486-b8ea-6337-b8f2-a28969469a9c" name="EnablePasswordRetrievalTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     11      <TestLink id="189e7772-5c22-4b71-99a0-088a0d58032a" name="LockUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     12      <TestLink id="ff6c5d3e-5e1e-1081-124b-2fcac551aca7" name="ApplicationNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     13      <TestLink id="24471274-db41-b60d-7d2b-8acb20f60d91" name="RequiresUniqueEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     14      <TestLink id="ac003d48-3914-cbfc-71f8-06b626d85e48" name="RemoveUsersFromRolesTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     15      <TestLink id="988929ee-6387-989d-0f13-4e62dd431895" name="ApplicationNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     16      <TestLink id="9d907fe3-9c12-249c-3602-aec229273f9f" name="MaxInvalidPasswordAttemptsTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     17      <TestLink id="803d2869-a377-25bf-a71b-c84dc77d1def" name="GetUserNameByEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     18      <TestLink id="5d0b1e42-2e2d-902a-310a-eaf3e0c7cfed" name="ResetPasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     19      <TestLink id="f5257092-3544-c359-b761-ec70163dda25" name="GetNumberOfUsersOnlineTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     20      <TestLink id="0bede7a2-34a9-e4a1-876d-340d270063a8" name="GetRolesForUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     21      <TestLink id="eecd2021-d6b1-6674-2ae0-91a9d3d810e9" name="GetUsersInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     22      <TestLink id="b076f1b4-7085-972e-6b44-f9169d06d257" name="HeuristicLabRoleProviderConstructorTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     23      <TestLink id="4ab8b61c-5e68-9600-3bda-b62c1be6a59b" name="ValidateUserTestEncrypted" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     24      <TestLink id="a4af587f-4c98-aebc-558f-715a35c3cd41" name="IsUserInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    825      <TestLink id="e74d08fa-1da6-67aa-e264-44883b102ee0" name="DeleteUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    9       <TestLink id="18d3553b-a209-8cdc-c401-5eb3991d6309" name="GetUserTest1" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     26      <TestLink id="fa9b10a7-b01f-af0c-9493-103479586615" name="PasswordFormatTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     27      <TestLink id="bd2b2af4-a196-8696-fdfe-6f8c91dee0ed" name="DeleteRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     28      <TestLink id="2db4d6ab-4cd3-a886-2ac5-fe07d2068721" name="PasswordAttemptWindowTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     29      <TestLink id="903719dc-469b-6714-449e-0d776b005bcf" name="RoleExistsTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     30      <TestLink id="196bf27d-a22d-5b93-03da-a009cdce162d" name="NoDuplicateUserNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     31      <TestLink id="1a94db67-3320-0cec-7fd2-e24b862bc44f" name="ValidateUserTestHashed" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     32      <TestLink id="379524a8-162e-5351-9f98-90379ad7555c" name="GetUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     33      <TestLink id="34b4b356-297a-e42a-ac92-da02d0a2448d" name="RequiresQuestionAndAnswerTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     34      <TestLink id="f2bc074f-6cf0-8bb3-8fdb-2bb731b072df" name="FindUsersByEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     35      <TestLink id="ec4d0dbb-e9d0-921a-60b8-4d5c777c22bb" name="FindUsersByNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     36      <TestLink id="60c35d4e-9d54-9209-b000-7c6659d31139" name="PasswordStrengthRegularExpressionTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     37      <TestLink id="6af0f397-4c32-7395-eef2-8ad544b236ba" name="GetAllRolesTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     38      <TestLink id="3463a5ed-c3f1-6729-be85-dc5e0d4df6bd" name="CreateRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     39      <TestLink id="3adf5992-1e01-e5fc-4289-d84b0c245a46" name="MinRequiredPasswordLengthTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    1040      <TestLink id="648cc85e-1d3a-2c11-c6a4-5294b54ce207" name="GetPasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    11       <TestLink id="34b4b356-297a-e42a-ac92-da02d0a2448d" name="RequiresQuestionAndAnswerTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    12       <TestLink id="5d0b1e42-2e2d-902a-310a-eaf3e0c7cfed" name="ResetPasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     41      <TestLink id="3d3010a0-a276-ccc1-237e-3b333b8c922e" name="FindUsersInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     42      <TestLink id="246f0e92-203a-6927-8ab4-9db7e34680d4" name="GetAllUsersTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     43      <TestLink id="b7f66205-f4ec-95fe-a1c6-8d6c8149d406" name="ChangePasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    1344      <TestLink id="9c0dd09c-2020-7eaa-5fa5-6a929596dff0" name="UpdateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    14       <TestLink id="fe3e4486-b8ea-6337-b8f2-a28969469a9c" name="EnablePasswordRetrievalTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    15       <TestLink id="ec4d0dbb-e9d0-921a-60b8-4d5c777c22bb" name="FindUsersByNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    16       <TestLink id="fa9b10a7-b01f-af0c-9493-103479586615" name="PasswordFormatTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    17       <TestLink id="803d2869-a377-25bf-a71b-c84dc77d1def" name="GetUserNameByEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    18       <TestLink id="246f0e92-203a-6927-8ab4-9db7e34680d4" name="GetAllUsersTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    19       <TestLink id="f2bc074f-6cf0-8bb3-8fdb-2bb731b072df" name="FindUsersByEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    20       <TestLink id="87879d13-77ad-9ad4-016a-e00a2c9ad877" name="ChangePasswordQuestionAndAnswerTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    21       <TestLink id="196bf27d-a22d-5b93-03da-a009cdce162d" name="NoDuplicateUserNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    22       <TestLink id="988929ee-6387-989d-0f13-4e62dd431895" name="ApplicationNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     45      <TestLink id="ebbb8f42-7ada-7770-1d53-90ecaf969f8c" name="NoDuplicateEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     46      <TestLink id="8e1fa22e-f5c4-2a2f-90b3-46292accf35d" name="EnablePasswordResetTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    2347      <TestLink id="7a4e1dba-1d39-2948-7d98-a24768e0c9b0" name="CreateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    24       <TestLink id="24471274-db41-b60d-7d2b-8acb20f60d91" name="RequiresUniqueEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    25       <TestLink id="189e7772-5c22-4b71-99a0-088a0d58032a" name="LockUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    26       <TestLink id="379524a8-162e-5351-9f98-90379ad7555c" name="GetUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    27       <TestLink id="1a94db67-3320-0cec-7fd2-e24b862bc44f" name="ValidateUserTestHashed" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    2848      <TestLink id="8da47073-95eb-4ffc-5a69-67901dba3a5a" name="ValidateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    29       <TestLink id="2db4d6ab-4cd3-a886-2ac5-fe07d2068721" name="PasswordAttemptWindowTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    30       <TestLink id="b7653734-bdb9-3ff1-e139-577afa69ace4" name="HeuristicLabMembershipProviderConstructorTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    3149      <TestLink id="52486394-92df-3a60-6fc5-02aa93a756ce" name="MinRequiredNonAlphanumericCharactersTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    32       <TestLink id="9d907fe3-9c12-249c-3602-aec229273f9f" name="MaxInvalidPasswordAttemptsTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    33       <TestLink id="8e1fa22e-f5c4-2a2f-90b3-46292accf35d" name="EnablePasswordResetTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    34       <TestLink id="60c35d4e-9d54-9209-b000-7c6659d31139" name="PasswordStrengthRegularExpressionTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    35       <TestLink id="3adf5992-1e01-e5fc-4289-d84b0c245a46" name="MinRequiredPasswordLengthTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    36       <TestLink id="4ab8b61c-5e68-9600-3bda-b62c1be6a59b" name="ValidateUserTestEncrypted" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    37       <TestLink id="f5257092-3544-c359-b761-ec70163dda25" name="GetNumberOfUsersOnlineTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    38       <TestLink id="ebbb8f42-7ada-7770-1d53-90ecaf969f8c" name="NoDuplicateEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    39       <TestLink id="b7f66205-f4ec-95fe-a1c6-8d6c8149d406" name="ChangePasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
     50      <TestLink id="507879f3-78ea-dbf3-86f4-ab641c928ba6" name="NoDuplicateRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel,   PublicKeyToken=b03f5f7f11d50a3a" />
    4051    </TestLinks>
    4152  </TestList>
  • branches/HeuristicLab.Services.Authentication Prototype/Persistence/DataClasses.dbml

    r3970 r4009  
    1212      <Column Name="Comment" Modifier="Virtual" Type="System.String" CanBeNull="false" />
    1313      <Column Name="Locked" Type="System.Boolean" CanBeNull="false" />
     14      <Column Member="FailedLogins" Type="System.Int32" CanBeNull="false" />
    1415      <Association Name="HeuristicLabUser_HeuristicLabUserRole" Member="HeuristicLabUserRoles" Storage="_HeuristicLabUserRole" ThisKey="ID" OtherKey="HeuristicLabUserID" Type="HeuristicLabUserRole" />
    1516    </Type>
  • branches/HeuristicLab.Services.Authentication Prototype/Persistence/DataClasses.dbml.layout

    r3970 r4009  
    33  <DataContextMoniker Name="/DataClassesDataContext" />
    44  <nestedChildShapes>
    5     <classShape Id="8a64982c-bf12-42de-930c-12197e5058b2" absoluteBounds="0.5, 0.625, 2, 2.5401025390625">
     5    <classShape Id="8a64982c-bf12-42de-930c-12197e5058b2" absoluteBounds="0.5, 0.625, 2, 2.7324039713541666">
    66      <DataClassMoniker Name="/DataClassesDataContext/HeuristicLabUser" />
    77      <nestedChildShapes>
    8         <elementListCompartment Id="c2de162f-d029-4b40-9694-ef3f14c7a783" absoluteBounds="0.5149999999999999, 1.085, 1.9700000000000002, 1.9801025390625" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
     8        <elementListCompartment Id="c2de162f-d029-4b40-9694-ef3f14c7a783" absoluteBounds="0.5149999999999999, 1.085, 1.9700000000000002, 2.1724039713541665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
    99      </nestedChildShapes>
    1010    </classShape>
     
    2121      </nestedChildShapes>
    2222    </classShape>
    23     <associationConnector edgePoints="[(1.5625 : 3.1651025390625); (1.5625 : 3.625)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     23    <associationConnector edgePoints="[(1.5625 : 3.35740397135417); (1.5625 : 3.625)]" fixedFrom="Algorithm" fixedTo="Algorithm">
    2424      <AssociationMoniker Name="/DataClassesDataContext/HeuristicLabUser/HeuristicLabUser_HeuristicLabUserRole" />
    2525      <nodes>
  • branches/HeuristicLab.Services.Authentication Prototype/Persistence/DataClasses.designer.cs

    r3970 r4009  
    116116    private bool _Locked;
    117117   
     118    private int _FailedLogins;
     119   
    118120    private EntitySet<HeuristicLabUserRole> _HeuristicLabUserRole;
    119121   
     
    142144    partial void OnLockedChanging(bool value);
    143145    partial void OnLockedChanged();
     146    partial void OnFailedLoginsChanging(int value);
     147    partial void OnFailedLoginsChanged();
    144148    #endregion
    145149   
     
    338342    }
    339343   
     344    [Column(Storage="_FailedLogins")]
     345    [DataMember(Order=10)]
     346    public int FailedLogins
     347    {
     348      get
     349      {
     350        return this._FailedLogins;
     351      }
     352      set
     353      {
     354        if ((this._FailedLogins != value))
     355        {
     356          this.OnFailedLoginsChanging(value);
     357          this.SendPropertyChanging();
     358          this._FailedLogins = value;
     359          this.SendPropertyChanged("FailedLogins");
     360          this.OnFailedLoginsChanged();
     361        }
     362      }
     363    }
     364   
    340365    [Association(Name="HeuristicLabUser_HeuristicLabUserRole", Storage="_HeuristicLabUserRole", ThisKey="ID", OtherKey="HeuristicLabUserID")]
    341     [DataMember(Order=10, EmitDefaultValue=false)]
     366    [DataMember(Order=11, EmitDefaultValue=false)]
    342367    public EntitySet<HeuristicLabUserRole> HeuristicLabUserRoles
    343368    {
  • branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabMembershipProvider.cs

    r4008 r4009  
    2222    private bool pRequiresQuestionAndAnswer;
    2323    private bool pRequiresUniqueEmail;
    24     private int pMaxInvalidPasswordAttempts;
     24    private int pMaxInvalidPasswordAttempts = 3;
    2525    private int pPasswordAttemptWindow;
    2626    private int pMinRequiredPasswordLength = 5;
     
    6969
    7070    public override bool RequiresQuestionAndAnswer {
    71       get { return pRequiresQuestionAndAnswer; }
     71      get { return false; }
    7272    }
    7373
     
    163163          u.PasswordAnswer = newPasswordAnswer;
    164164          u.PasswordQuestion = newPasswordQuestion;
     165         
    165166          db.SubmitChanges();
     167         
    166168          return true;
    167169        }
     
    432434          return false;
    433435        }
    434         HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username);
    435         isValid = CheckPassword(password, u.Password);
     436        if (db.HeuristicLabUsers.Count(x => x.UserName == username && x.Locked == false) > 0) {
     437          HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username && x.Locked == false);
     438          isValid = CheckPassword(password, u.Password) && u.FailedLogins <= MaxInvalidPasswordAttempts;
     439          if (!isValid) {
     440            u.FailedLogins++;
     441            if (u.FailedLogins > MaxInvalidPasswordAttempts) {
     442              u.Locked = true;
     443            }
     444          } else {
     445            u.FailedLogins = 0;
     446          }
     447
     448          db.SubmitChanges();
     449        }
    436450      }
    437451      return isValid;
  • branches/HeuristicLab.Services.Authentication Prototype/UnitTests/HeuristicLabMembershipProviderTest.cs

    r4008 r4009  
    8181      bool actual;
    8282      actual = target.RequiresQuestionAndAnswer;
    83       Assert.Inconclusive("Verify the correctness of this test method.");
     83      Assert.IsFalse(actual);
    8484    }
    8585
     
    141141      int actual;
    142142      actual = target.MinRequiredNonAlphanumericCharacters;
    143       Assert.Inconclusive("Verify the correctness of this test method.");
     143      Assert.AreEqual(actual, 0);
    144144    }
    145145
     
    150150    public void MaxInvalidPasswordAttemptsTest() {
    151151      MembershipProvider target = Membership.Provider;
    152       int actual;
    153       actual = target.MaxInvalidPasswordAttempts;
    154       Assert.Inconclusive("Verify the correctness of this test method.");
     152      MembershipCreateStatus status;
     153      target.CreateUser("testUser", "MySuperPassword", "mail", "question", "answer", true, null, out status);
     154      Assert.AreEqual(MembershipCreateStatus.Success, status);
     155
     156      target.ValidateUser("testUser", "MySuperPassword");
     157      Assert.IsFalse(target.GetUser("testUser", true).IsLockedOut);
     158
     159      for (int i = 0; i < target.MaxInvalidPasswordAttempts - 1; i++) {
     160        target.ValidateUser("testUser", "foo");
     161        Assert.IsFalse(target.GetUser("testUser", true).IsLockedOut);
     162      }
     163
     164      target.ValidateUser("testUser", "MySuperPassword");
     165      Assert.IsFalse(target.GetUser("testUser", true).IsLockedOut);
     166
     167
     168      for (int i = 0; i < target.MaxInvalidPasswordAttempts; i++) {
     169        target.ValidateUser("testUser", "foo");
     170        Assert.IsFalse(target.GetUser("testUser", true).IsLockedOut);
     171      }
     172     
     173      target.ValidateUser("testUser", "foo");
     174      Assert.IsTrue(target.GetUser("testUser", true).IsLockedOut);
     175
     176      target.ValidateUser("testUser", "MySuperPassword");
     177      Assert.IsTrue(target.GetUser("testUser", true).IsLockedOut);
     178
    155179    }
    156180
     
    248272      HeuristicLabUser dbUser = db.HeuristicLabUsers.Single(u => u.UserName == "testname");
    249273      Assert.IsFalse(dbUser.Locked);
    250       Assert.IsTrue(dbUser.Locked);
    251274
    252275    }
     
    283306    }
    284307
    285     /// <summary>
    286     ///A test for GetUser
    287     ///</summary>
    288     [TestMethod()]
    289     public void GetUserTest1() {
    290       MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value
    291       object providerUserKey = null; // TODO: Initialize to an appropriate value
    292       bool userIsOnline = false; // TODO: Initialize to an appropriate value
    293       MembershipUser expected = null; // TODO: Initialize to an appropriate value
    294       MembershipUser actual;
    295       actual = target.GetUser(providerUserKey, userIsOnline);
    296       Assert.AreEqual(expected, actual);
    297       Assert.Inconclusive("Verify the correctness of this test method.");
    298     }
    299308
    300309    /// <summary>
     
    304313    public void GetUserTest() {
    305314      MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value
    306       string username = string.Empty; // TODO: Initialize to an appropriate value
    307       bool userIsOnline = false; // TODO: Initialize to an appropriate value
    308       MembershipUser expected = null; // TODO: Initialize to an appropriate value
    309       MembershipUser actual;
    310       actual = target.GetUser(username, userIsOnline);
    311       Assert.AreEqual(expected, actual);
    312       Assert.Inconclusive("Verify the correctness of this test method.");
     315      MembershipCreateStatus status;
     316      target.CreateUser("testUser","myPersonalSecret", "root@nowhere.com","myQuestion", "myAnswer", true, null, out status);
     317      Assert.AreEqual(MembershipCreateStatus.Success, status);
     318      MembershipUser user = target.GetUser("testUser", true);
     319      Assert.AreEqual(user.UserName, "testUser");
     320      Assert.AreEqual(user.Email, "root@nowhere.com");
     321      Assert.AreEqual(user.PasswordQuestion, "myQuestion");
     322      Assert.IsTrue(target.ValidateUser("testUser", "myPersonalSecret"));
     323     
    313324    }
    314325
     
    511522      // gibt zwar true zurück, was schon mal gut ist
    512523      Assert.IsTrue(target.ChangePasswordQuestionAndAnswer("testname", "INIT", "newquestion", "newanswer"));
    513       // aber hier ist die änderung noch nicht da!! es ist immer noch die alte frage + alte antwort
     524      db.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues, u);
    514525      u = db.HeuristicLabUsers.Single<HeuristicLabUser>(x => x.UserName == "testname");
    515526      Assert.AreEqual<String>("newquestion", u.PasswordQuestion);
     
    522533    [TestMethod()]
    523534    public void ChangePasswordTest() {
     535      MembershipProvider target = Membership.Provider;
     536     
    524537      // create user
    525538      HeuristicLabUser u = new HeuristicLabUser("testname", "testemail", "testquestion", "testcomment");
     539      u.Password = ((HeuristicLabMembershipProvider)target).EncodePassword("INIT");
    526540      db.HeuristicLabUsers.InsertOnSubmit(u);
    527541      db.SubmitChanges();
     
    529543      // check if user is stored
    530544      u = db.HeuristicLabUsers.Single<HeuristicLabUser>(x => x.UserName == "testname");
    531       Assert.AreEqual<String>("INIT", u.Password);
     545      Assert.AreEqual<String>(((HeuristicLabMembershipProvider)target).EncodePassword("INIT"), u.Password);
    532546
    533547      // change data and check again
    534       MembershipProvider target = Membership.Provider;
    535548      Assert.IsTrue(target.ChangePassword("testname", "INIT", "newPassword"));
    536       // hat nix gemacht!! :(
     549      db.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues, u);
    537550      u = db.HeuristicLabUsers.Single<HeuristicLabUser>(x => x.UserName == "testname");
    538       Assert.AreEqual<String>("newPassword", u.Password);
     551      Assert.AreEqual<String>(((HeuristicLabMembershipProvider)target).EncodePassword("newPassword"), u.Password);
    539552    }
    540553
Note: See TracChangeset for help on using the changeset viewer.