Changeset 4002
- Timestamp:
- 07/06/10 16:01:19 (14 years ago)
- Location:
- branches/HeuristicLab.Services.Authentication Prototype
- Files:
-
- 3 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Services.Authentication Prototype/HeuristicLab.Services.Authentication Prototyp.sln
r3978 r4002 13 13 HeuristicLab.Services.Authentication Prototyp1.vsmdi = HeuristicLab.Services.Authentication Prototyp1.vsmdi 14 14 HeuristicLab.Services.Authentication Prototyp2.vsmdi = HeuristicLab.Services.Authentication Prototyp2.vsmdi 15 HeuristicLab.Services.Authentication Prototyp3.vsmdi = HeuristicLab.Services.Authentication Prototyp3.vsmdi 16 HeuristicLab.Services.Authentication Prototyp4.vsmdi = HeuristicLab.Services.Authentication Prototyp4.vsmdi 15 17 LocalTestRun.testrunconfig = LocalTestRun.testrunconfig 16 18 EndProjectSection … … 18 20 Global 19 21 GlobalSection(TestCaseManagementSettings) = postSolution 20 CategoryFile = HeuristicLab.Services.Authentication Prototyp 1.vsmdi22 CategoryFile = HeuristicLab.Services.Authentication Prototyp4.vsmdi 21 23 EndGlobalSection 22 24 GlobalSection(SolutionConfigurationPlatforms) = preSolution -
branches/HeuristicLab.Services.Authentication Prototype/Persistence/HeuristicLabUser.cs
r3992 r4002 6 6 /// implements the MembershipUser for HeuristicLab 7 7 /// </summary> 8 partial class HeuristicLabUser : MembershipUser { 8 partial class HeuristicLabUser { 9 10 private HeuristicLabMembershipUser membershipUser; 11 9 12 public HeuristicLabUser(string name, string email, string passwordQuestion, string comment) : this() { 10 13 _UserName = name; … … 17 20 } 18 21 19 public override bool ChangePassword(string oldPassword, string newPassword) { 20 if (oldPassword == null) { 21 throw new ArgumentNullException("oldPassword"); 22 23 24 public HeuristicLabMembershipUser getMembershipUser(String providerName) { 25 if (membershipUser == null) { 26 membershipUser = new HeuristicLabMembershipUser(providerName, this.UserName, this.ID, this.Email, this.PasswordQuestion, this.Comment, true, this.Locked, new DateTime(), new DateTime(), new DateTime(), new DateTime(), new DateTime()) ; 22 27 } 23 if (newPassword == null) { 24 throw new ArgumentNullException("newPassword"); 25 } 26 if (oldPassword.Length == 0) { 27 throw new ArgumentException("Parameter oldPassword must not be empty!"); 28 } 29 if (newPassword.Length == 0) { 30 throw new ArgumentException("Parameter newPassword must not be empty!"); 31 } 32 33 if (Password.CompareTo(oldPassword) == 0) { 34 Password = newPassword; 35 return true; 36 } else { 37 return false; 38 } 28 return membershipUser; 39 29 } 40 41 public override bool ChangePasswordQuestionAndAnswer(string password, string newPasswordQuestion, string newPasswordAnswer) { 42 if (password == null) { 43 throw new ArgumentNullException("password"); 44 } 45 if (newPasswordQuestion == null) { 46 throw new ArgumentNullException("newPasswordQuestion"); 47 } 48 if (newPasswordAnswer == null) { 49 throw new ArgumentNullException("newPasswordAnswer"); 50 } 51 if (password.Length == 0) { 52 throw new ArgumentException("Parameter password must not be empty!"); 53 } 54 if (newPasswordQuestion.Length == 0) { 55 throw new ArgumentException("Parameter newPasswordQuestion must not be empty!"); 56 } 57 if (newPasswordAnswer.Length == 0) { 58 throw new ArgumentException("Parameter newPasswordAnswer must not be empty!"); 59 } 60 61 if (Password.CompareTo(password) == 0) { 62 _PasswordQuestion = newPasswordQuestion; 63 PasswordAnswer = newPasswordAnswer; 64 return true; 65 } else { 66 return false; 67 } 68 } 69 70 public override string GetPassword() { 71 return Password; 72 } 73 74 public override string GetPassword(string passwordAnswer) { 75 if (PasswordAnswer == passwordAnswer) { 76 return Password; 77 } else { 78 return ""; 79 } 80 } 81 82 public override string ResetPassword() { 83 Password = "INIT"; 84 return Password; 85 } 86 87 public override string ResetPassword(string passwordAnswer) { 88 if (PasswordAnswer == passwordAnswer) { 89 Password = "INIT"; 90 return Password; 91 } else { 92 return ""; 93 } 94 } 95 96 public override string ToString() { 97 return UserName; 98 } 99 100 public bool LockUser() 101 { 102 Locked = true; 103 return Locked; 104 } 105 106 // 107 // Summary: 108 // Clears the locked-out state of the user so that the membership user can be 109 // validated. 110 // 111 // Returns: 112 // true if the membership user was successfully unlocked; otherwise, false. 113 public override bool UnlockUser() 114 { 115 Locked = false; 116 return !Locked; 117 } 30 118 31 } 119 32 } -
branches/HeuristicLab.Services.Authentication Prototype/Persistence/HeuristicLabUserRole.cs
r3978 r4002 7 7 partial class HeuristicLabUserRole { 8 8 public override bool Equals(object obj) { 9 if(this.ID == null ^ ((HeuristicLabUserRole)obj).ID == null ) 10 { 11 return false; 12 } 13 else if (this.ID == null && ((HeuristicLabUserRole)obj).ID == null) 9 if (this.ID == null && ((HeuristicLabUserRole)obj).ID == null) 14 10 { 15 11 return base.Equals(obj); -
branches/HeuristicLab.Services.Authentication Prototype/Persistence/Persistence.csproj
r3970 r4002 53 53 </ItemGroup> 54 54 <ItemGroup> 55 <Compile Include="HeuristicLabMembershipUser.cs" /> 55 56 <Compile Include="HeuristicLabUserRole.cs" /> 56 57 <Compile Include="DatabaseUtil.cs" /> -
branches/HeuristicLab.Services.Authentication Prototype/Service/App.config
r3976 r4002 3 3 <system.web> 4 4 <compilation debug="true" /> 5 <membership defaultProvider="HeuristiclabMemberShipProvider" userIsOnlineTimeWindow="15"> 6 <providers> 7 <clear/> 8 <add 9 name="HeuristiclabMemberShipProvider" 10 type="Service.Provider.HeuristicLabMembershipProvider, Service" 11 passwordFormat= "Hashed"/> 12 </providers> 13 </membership> 5 14 </system.web> 6 15 <system.serviceModel> 7 16 <behaviors> 8 17 <serviceBehaviors> 18 <serviceCredentials> 19 <userNameAuthentication membershipProviderName="HeuristiclabMemberShipProvider" /> 20 </serviceCredentials> 9 21 <behavior name="HttpServiceBehavior"> 10 22 <serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:8888/metadata" /> -
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabMembershipProvider.cs
r3992 r4002 137 137 // try to get user 138 138 HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username); 139 if (u.ChangePassword(oldPassword, newPassword)) { 140 // save user to database only if needed 139 140 if (u.Password == EncodePassword(oldPassword) && newPassword.Length > 0) { 141 u.Password = EncodePassword(newPassword); 141 142 db.SubmitChanges(); 142 143 return true; 143 } else {144 return false;145 144 } 145 return false; 146 147 146 148 } 147 149 catch (Exception) { … … 153 155 public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) { 154 156 using (DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext()) { 155 // check database connection 156 if (db == null) { 157 return false; 158 } 159 try { 160 // try to get user 157 158 if (db.HeuristicLabUsers.Count(x => x.UserName == username) > 0 && newPasswordQuestion.Length > 0 && newPasswordAnswer.Length > 0) { 161 159 HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username); 162 if (u.ChangePasswordQuestionAndAnswer(password, newPasswordQuestion, newPasswordAnswer)) { 163 // save user to database only if needed 164 db.SubmitChanges(); 165 return true; 166 } else { 167 return false; 168 } 169 } 170 catch (Exception) { 171 return false; 172 } 160 u.PasswordAnswer = newPasswordAnswer; 161 u.PasswordQuestion = newPasswordQuestion; 162 db.SubmitChanges(); 163 return true; 164 } 165 return false; 173 166 } 174 167 } … … 195 188 HeuristicLabUser u = new HeuristicLabUser(username, email, passwordQuestion, ""); 196 189 password = EncodePassword(password); 197 u.ChangePassword("INIT", password); 198 u.ChangePasswordQuestionAndAnswer(password, passwordQuestion, passwordAnswer); 190 u.Password = password; 191 u.PasswordAnswer = passwordAnswer; 192 u.PasswordQuestion = passwordQuestion; 199 193 // save user into database 200 194 db.HeuristicLabUsers.InsertOnSubmit(u); … … 203 197 // success 204 198 status = MembershipCreateStatus.Success; 205 return u ;199 return u.getMembershipUser(this.Name); 206 200 } 207 201 catch (Exception) { … … 271 265 // this leads to a npe 272 266 if (u != null) { 273 userCollection.Add(u );267 userCollection.Add(u.getMembershipUser(this.Name)); 274 268 } 275 269 } … … 321 315 322 316 // unlock user 323 u.Lock User();317 u.Locked = true; 324 318 db.SubmitChanges(); 325 319 return true; … … 348 342 349 343 // unlock user 350 u. UnlockUser();344 u.Locked = false; 351 345 db.SubmitChanges(); 352 346 return true; … … 375 369 } 376 370 HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username); 377 isValid = CheckPassword(password, u. GetPassword());371 isValid = CheckPassword(password, u.Password); 378 372 } 379 373 return isValid; -
branches/HeuristicLab.Services.Authentication Prototype/UnitTests/HeuristicLabMembershipProviderTest.cs
r3992 r4002 67 67 [TestMethod()] 68 68 public void RequiresUniqueEmailTest() { 69 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();// TODO: Initialize to an appropriate value69 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 70 70 bool actual; 71 71 actual = target.RequiresUniqueEmail; … … 78 78 [TestMethod()] 79 79 public void RequiresQuestionAndAnswerTest() { 80 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();// TODO: Initialize to an appropriate value80 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 81 81 bool actual; 82 82 actual = target.RequiresQuestionAndAnswer; … … 89 89 [TestMethod()] 90 90 public void PasswordStrengthRegularExpressionTest() { 91 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value91 MembershipProvider target = Membership.Provider; 92 92 string actual; 93 93 actual = target.PasswordStrengthRegularExpression; … … 100 100 [TestMethod()] 101 101 public void PasswordFormatTest() { 102 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value102 MembershipProvider target = Membership.Provider; 103 103 MembershipPasswordFormat actual; 104 104 actual = target.PasswordFormat; … … 111 111 [TestMethod()] 112 112 public void PasswordAttemptWindowTest() { 113 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();// TODO: Initialize to an appropriate value113 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 114 114 int actual; 115 115 actual = target.PasswordAttemptWindow; … … 122 122 [TestMethod()] 123 123 public void MinRequiredPasswordLengthTest() { 124 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();// TODO: Initialize to an appropriate value124 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 125 125 int actual; 126 126 actual = target.MinRequiredPasswordLength; … … 133 133 [TestMethod()] 134 134 public void MinRequiredNonAlphanumericCharactersTest() { 135 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();// TODO: Initialize to an appropriate value135 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 136 136 int actual; 137 137 actual = target.MinRequiredNonAlphanumericCharacters; … … 144 144 [TestMethod()] 145 145 public void MaxInvalidPasswordAttemptsTest() { 146 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value146 MembershipProvider target = Membership.Provider; 147 147 int actual; 148 148 actual = target.MaxInvalidPasswordAttempts; … … 155 155 [TestMethod()] 156 156 public void EnablePasswordRetrievalTest() { 157 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value157 MembershipProvider target = Membership.Provider; 158 158 bool actual; 159 159 actual = target.EnablePasswordRetrieval; … … 166 166 [TestMethod()] 167 167 public void EnablePasswordResetTest() { 168 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();// TODO: Initialize to an appropriate value168 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 169 169 bool actual; 170 170 actual = target.EnablePasswordReset; … … 177 177 [TestMethod()] 178 178 public void ApplicationNameTest() { 179 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value179 MembershipProvider target = Membership.Provider; 180 180 string expected = string.Empty; // TODO: Initialize to an appropriate value 181 181 string actual; … … 191 191 [TestMethod()] 192 192 public void ValidateUserTest() { 193 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();193 MembershipProvider target = Membership.Provider; 194 194 MembershipCreateStatus status; 195 195 target.CreateUser("testname", "newPassword", "testemail", "testquestion", "testanswer", true, null, out status); … … 202 202 [TestMethod()] 203 203 public void ValidateUserTestEncrypted() { 204 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();204 MembershipProvider target = Membership.Provider; 205 205 NameValueCollection config = new NameValueCollection(); 206 206 config.Add("passwordFormat", "Encrypted"); 207 target.Initialize("", config);208 207 MembershipCreateStatus status; 209 208 target.CreateUser("testname", "newPassword", "testemail", "testquestion", "testanswer", true, null, out status); … … 216 215 [TestMethod()] 217 216 public void ValidateUserTestHashed() { 218 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); 219 NameValueCollection config = new NameValueCollection(); 220 config.Add("passwordFormat", "Hashed"); 221 target.Initialize("", config); 217 MembershipProvider target = Membership.Provider; 222 218 MembershipCreateStatus status; 223 219 target.CreateUser("testname", "newPassword", "testemail", "testquestion", "testanswer", true, null, out status); … … 230 226 [TestMethod()] 231 227 public void UpdateUserTest() { 232 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value228 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 233 229 MembershipUser user = null; // TODO: Initialize to an appropriate value 234 230 target.UpdateUser(user); … … 242 238 public void LockUserTest() 243 239 { 244 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();240 MembershipProvider target = Membership.Provider; 245 241 MembershipCreateStatus status; 246 HeuristicLabUser user = (HeuristicLabUser)target.CreateUser("testname", "newPassword", "testemail", "testquestion", "testanswer", true, null, out status);242 Persistence.HeuristicLabMembershipUser user = (Persistence.HeuristicLabMembershipUser)target.CreateUser("testname", "newPassword", "testemail", "testquestion", "testanswer", true, null, out status); 247 243 user.UnlockUser(); 248 Assert.IsFalse(user.Locked); 249 user.LockUser(); 250 Assert.IsTrue(user.Locked); 251 Assert.Inconclusive("Verify the correctness of this test method."); 252 } 253 254 /// <summary> 255 ///A test for UnlockUser 256 ///</summary> 257 [TestMethod()] 258 public void UnlockUserTest() 259 { 260 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); 261 MembershipCreateStatus status; 262 HeuristicLabUser user = (HeuristicLabUser)target.CreateUser("testname", "newPassword", "testemail", "testquestion", "testanswer", true, null, out status); 263 user.LockUser(); 264 Assert.IsTrue(user.Locked); 265 user.UnlockUser(); 266 Assert.IsFalse(user.Locked); 267 Assert.Inconclusive("Verify the correctness of this test method."); 268 } 244 HeuristicLabUser dbUser = db.HeuristicLabUsers.Single(u => u.UserName == "testname"); 245 Assert.IsFalse(dbUser.Locked); 246 Assert.IsTrue(dbUser.Locked); 247 248 } 249 250 269 251 270 252 /// <summary> … … 273 255 [TestMethod()] 274 256 public void ResetPasswordTest() { 275 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value257 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 276 258 string username = string.Empty; // TODO: Initialize to an appropriate value 277 259 string answer = string.Empty; // TODO: Initialize to an appropriate value … … 288 270 [TestMethod()] 289 271 public void GetUserNameByEmailTest() { 290 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value272 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 291 273 string email = string.Empty; // TODO: Initialize to an appropriate value 292 274 string expected = string.Empty; // TODO: Initialize to an appropriate value … … 302 284 [TestMethod()] 303 285 public void GetUserTest1() { 304 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value286 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 305 287 object providerUserKey = null; // TODO: Initialize to an appropriate value 306 288 bool userIsOnline = false; // TODO: Initialize to an appropriate value … … 317 299 [TestMethod()] 318 300 public void GetUserTest() { 319 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value301 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 320 302 string username = string.Empty; // TODO: Initialize to an appropriate value 321 303 bool userIsOnline = false; // TODO: Initialize to an appropriate value … … 332 314 [TestMethod()] 333 315 public void GetPasswordTest() { 334 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value316 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 335 317 string username = string.Empty; // TODO: Initialize to an appropriate value 336 318 string answer = string.Empty; // TODO: Initialize to an appropriate value … … 347 329 [TestMethod()] 348 330 public void GetNumberOfUsersOnlineTest() { 349 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value331 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 350 332 int expected = 0; // TODO: Initialize to an appropriate value 351 333 int actual; … … 362 344 [TestMethod()] 363 345 public void GetAllUsersTest() { 364 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();346 MembershipProvider target = Membership.Provider; 365 347 MembershipCreateStatus status; 366 348 int totalRecords; … … 375 357 376 358 int j = 0; 377 foreach (HeuristicLab User user in users) {359 foreach (HeuristicLabMembershipUser user in users) { 378 360 Assert.Equals("User " + j, user.UserName); 379 361 j++; … … 388 370 [TestMethod()] 389 371 public void FindUsersByNameTest() { 390 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value372 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 391 373 string usernameToMatch = string.Empty; // TODO: Initialize to an appropriate value 392 374 int pageIndex = 0; // TODO: Initialize to an appropriate value … … 407 389 [TestMethod()] 408 390 public void FindUsersByEmailTest() { 409 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value391 MembershipProvider target = Membership.Provider; // TODO: Initialize to an appropriate value 410 392 string emailToMatch = string.Empty; // TODO: Initialize to an appropriate value 411 393 int pageIndex = 0; // TODO: Initialize to an appropriate value … … 427 409 public void DeleteUserTest() { 428 410 // insert new user 429 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();411 MembershipProvider target = Membership.Provider; 430 412 MembershipCreateStatus status; 431 413 target.CreateUser("testname", "newPassword", "testemail", "testquestion", "testanswer", true, null, out status); … … 443 425 public void CreateUserTest() { 444 426 // create user 445 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();427 MembershipProvider target = Membership.Provider; 446 428 MembershipCreateStatus status; 447 429 target.CreateUser("testname", "newPassword", "testemail", "testquestion", "testanswer", true, null, out status); … … 480 462 481 463 // change data and check again 482 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();464 MembershipProvider target = Membership.Provider; 483 465 // gibt zwar true zurück, was schon mal gut ist 484 466 Assert.IsTrue(target.ChangePasswordQuestionAndAnswer("testname", "INIT", "newquestion", "newanswer")); … … 504 486 505 487 // change data and check again 506 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();488 MembershipProvider target = Membership.Provider; 507 489 Assert.IsTrue(target.ChangePassword("testname", "INIT", "newPassword")); 508 490 // hat nix gemacht!! :( … … 511 493 } 512 494 513 /// <summary> 514 ///A test for HeuristicLabMembershipProvider Constructor 515 ///</summary> 516 [TestMethod()] 517 public void HeuristicLabMembershipProviderConstructorTest() { 518 HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); 519 Assert.Inconclusive("TODO: Implement code to verify target"); 520 } 521 495 522 496 [TestMethod()] 523 497 public void NoDuplicateUserNameTest() { -
branches/HeuristicLab.Services.Authentication Prototype/UnitTests/HeuristicLabRoleProviderTest.cs
r4000 r4002 383 383 } 384 384 } 385 } //HeuristicLabRoleProviderTest 385 } 386 -
branches/HeuristicLab.Services.Authentication Prototype/UnitTests/UnitTests.csproj
r3976 r4002 61 61 <Compile Include="HeuristicLabMembershipProviderTest.cs" /> 62 62 <Compile Include="HeuristicLabRoleProviderTest.cs" /> 63 <Compile Include="HeuristicLabUserTest.cs" />64 63 <Compile Include="Properties\AssemblyInfo.cs" /> 65 64 <Compile Include="Service References\ServiceManagementRemote\Reference.cs"> -
branches/HeuristicLab.Services.Authentication Prototype/UnitTests/app.config
r3976 r4002 37 37 38 38 </system.serviceModel> 39 <system.web> 40 <compilation debug="true" /> 41 </system.web> 39 <system.web> 40 <compilation debug="true" /> 41 <membership defaultProvider="HeuristiclabMemberShipProvider" userIsOnlineTimeWindow="15"> 42 <providers> 43 <clear/> 44 <add 45 name="HeuristiclabMemberShipProvider" 46 type="Service.Provider.HeuristicLabMembershipProvider, Service" 47 passwordFormat= "Hashed"/> 48 </providers> 49 </membership> 50 </system.web> 51 42 52 <system.serviceModel> 43 53 <behaviors> -
branches/HeuristicLab.Services.Authentication Prototype/UnitTests/service/HeuristicLabManagementServiceTest.cs
r3976 r4002 27 27 } 28 28 } 29 30 [TestMethod()]31 29 public void TestCreateRoleTest() { 32 30 new ServiceManagementRemote.AuthorizationManagementServiceClient().CreateRole("myRole", true);
Note: See TracChangeset
for help on using the changeset viewer.