Changeset 4962 for branches/UserManagement
- Timestamp:
- 11/27/10 10:48:24 (14 years ago)
- Location:
- branches/UserManagement
- Files:
-
- 8 added
- 1 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/HeuristicLab.Services.Authentication.ServiceClient.csproj
r4940 r4962 7 7 <SchemaVersion>2.0</SchemaVersion> 8 8 <ProjectGuid>{8E698904-936D-4C7A-AB0D-6225778D2968}</ProjectGuid> 9 <OutputType> Exe</OutputType>9 <OutputType>Library</OutputType> 10 10 <AppDesignerFolder>Properties</AppDesignerFolder> 11 <RootNamespace>HeuristicLab.Services.Authentication .ServiceClients</RootNamespace>11 <RootNamespace>HeuristicLab.Services.Authentication</RootNamespace> 12 12 <AssemblyName>HeuristicLab.Services.Authentication.ServiceClients</AssemblyName> 13 13 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> … … 37 37 <Reference Include="System" /> 38 38 <Reference Include="System.Core" /> 39 <Reference Include="System.Data.Linq" /> 39 40 <Reference Include="System.Runtime.Serialization" /> 40 41 <Reference Include="System.ServiceModel" /> … … 46 47 </ItemGroup> 47 48 <ItemGroup> 48 <Compile Include="Client.cs" /> 49 <Compile Include="AuthenticationClient.cs" /> 50 <Compile Include="ClientFactory.cs" /> 49 51 <Compile Include="ServiceClients\Application.cs" /> 50 52 <Compile Include="ServiceClients\AuthenticationServiceClient.cs" /> … … 58 60 <None Include="ServiceClients\GenerateServiceClients.cmd" /> 59 61 </ItemGroup> 62 <ItemGroup> 63 <ProjectReference Include="..\HeuristicLab.Services.Authentication\HeuristicLab.Services.Authentication.csproj"> 64 <Project>{0E7ADDD6-C7EA-45F6-A7ED-48041ABF1A87}</Project> 65 <Name>HeuristicLab.Services.Authentication</Name> 66 </ProjectReference> 67 </ItemGroup> 68 <ItemGroup> 69 <WCFMetadata Include="Service References\" /> 70 </ItemGroup> 60 71 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 61 72 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/ServiceClients/Application.cs
r4927 r4962 4 4 using System.Text; 5 5 6 namespace HeuristicLab.Services.Authentication .ServiceClient6 namespace HeuristicLab.Services.Authentication 7 7 { 8 8 public partial class Application -
branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/ServiceClients/AuthenticationServiceClient.cs
r4927 r4962 9 9 //------------------------------------------------------------------------------ 10 10 11 namespace HeuristicLab.Services.Authentication .ServiceClient11 namespace HeuristicLab.Services.Authentication 12 12 { 13 13 using System.Runtime.Serialization; … … 18 18 [System.Runtime.Serialization.DataContractAttribute(Name="AuthItem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + 19 19 "Transfer")] 20 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication. ServiceClient.NamedAuthItem))]21 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication. ServiceClient.Role))]22 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication. ServiceClient.Application))]23 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication. ServiceClient.User))]20 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.NamedAuthItem))] 21 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.Role))] 22 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.Application))] 23 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.User))] 24 24 public partial class AuthItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 25 25 { … … 74 74 [System.Runtime.Serialization.DataContractAttribute(Name="NamedAuthItem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + 75 75 "Transfer")] 76 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication. ServiceClient.Role))]77 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication. ServiceClient.Application))]78 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication. ServiceClient.User))]79 public partial class NamedAuthItem : HeuristicLab.Services.Authentication. ServiceClient.AuthItem76 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.Role))] 77 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.Application))] 78 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.User))] 79 public partial class NamedAuthItem : HeuristicLab.Services.Authentication.AuthItem 80 80 { 81 81 … … 104 104 [System.Runtime.Serialization.DataContractAttribute(Name="Role", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + 105 105 "Transfer")] 106 public partial class Role : HeuristicLab.Services.Authentication. ServiceClient.NamedAuthItem106 public partial class Role : HeuristicLab.Services.Authentication.NamedAuthItem 107 107 { 108 108 … … 169 169 [System.Runtime.Serialization.DataContractAttribute(Name="Application", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + 170 170 "Transfer")] 171 public partial class Application : HeuristicLab.Services.Authentication. ServiceClient.NamedAuthItem171 public partial class Application : HeuristicLab.Services.Authentication.NamedAuthItem 172 172 { 173 173 … … 215 215 [System.Runtime.Serialization.DataContractAttribute(Name="User", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + 216 216 "Transfer")] 217 public partial class User : HeuristicLab.Services.Authentication. ServiceClient.NamedAuthItem217 public partial class User : HeuristicLab.Services.Authentication.NamedAuthItem 218 218 { 219 219 … … 448 448 449 449 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 450 [System.ServiceModel.ServiceContractAttribute(ConfigurationName="HeuristicLab.Services.Authentication. ServiceClient.IAuthenticationService")]450 [System.ServiceModel.ServiceContractAttribute(ConfigurationName="HeuristicLab.Services.Authentication.IAuthenticationService")] 451 451 public interface IAuthenticationService 452 452 { 453 453 454 454 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/GetUser", ReplyAction="http://tempuri.org/IAuthenticationService/GetUserResponse")] 455 HeuristicLab.Services.Authentication. ServiceClient.User GetUser(System.Guid id);455 HeuristicLab.Services.Authentication.User GetUser(System.Guid id); 456 456 457 457 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/GetUsers", ReplyAction="http://tempuri.org/IAuthenticationService/GetUsersResponse")] 458 HeuristicLab.Services.Authentication. ServiceClient.User[] GetUsers(System.Guid applicationId);458 HeuristicLab.Services.Authentication.User[] GetUsers(System.Guid applicationId); 459 459 460 460 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/InsertUser", ReplyAction="http://tempuri.org/IAuthenticationService/InsertUserResponse")] 461 bool InsertUser(HeuristicLab.Services.Authentication.ServiceClient.User user);461 System.Guid InsertUser(HeuristicLab.Services.Authentication.User user); 462 462 463 463 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/DeleteUser", ReplyAction="http://tempuri.org/IAuthenticationService/DeleteUserResponse")] … … 465 465 466 466 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/UpdateUser", ReplyAction="http://tempuri.org/IAuthenticationService/UpdateUserResponse")] 467 bool UpdateUser(HeuristicLab.Services.Authentication. ServiceClient.User user);467 bool UpdateUser(HeuristicLab.Services.Authentication.User user); 468 468 469 469 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/AddUserToRole", ReplyAction="http://tempuri.org/IAuthenticationService/AddUserToRoleResponse")] … … 474 474 475 475 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/GetRolesForUser", ReplyAction="http://tempuri.org/IAuthenticationService/GetRolesForUserResponse")] 476 HeuristicLab.Services.Authentication. ServiceClient.Role[] GetRolesForUser(System.Guid userId);476 HeuristicLab.Services.Authentication.Role[] GetRolesForUser(System.Guid userId); 477 477 478 478 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/GetRole", ReplyAction="http://tempuri.org/IAuthenticationService/GetRoleResponse")] 479 HeuristicLab.Services.Authentication. ServiceClient.Role GetRole(System.Guid id);479 HeuristicLab.Services.Authentication.Role GetRole(System.Guid id); 480 480 481 481 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/GetRoles", ReplyAction="http://tempuri.org/IAuthenticationService/GetRolesResponse")] 482 HeuristicLab.Services.Authentication. ServiceClient.Role[] GetRoles(System.Guid applicationId);482 HeuristicLab.Services.Authentication.Role[] GetRoles(System.Guid applicationId); 483 483 484 484 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/InsertRole", ReplyAction="http://tempuri.org/IAuthenticationService/InsertRoleResponse")] 485 bool InsertRole(HeuristicLab.Services.Authentication.ServiceClient.Role role);485 System.Guid InsertRole(HeuristicLab.Services.Authentication.Role role); 486 486 487 487 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/UpdateRole", ReplyAction="http://tempuri.org/IAuthenticationService/UpdateRoleResponse")] 488 bool UpdateRole(HeuristicLab.Services.Authentication. ServiceClient.Role role);488 bool UpdateRole(HeuristicLab.Services.Authentication.Role role); 489 489 490 490 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/DeleteRole", ReplyAction="http://tempuri.org/IAuthenticationService/DeleteRoleResponse")] … … 492 492 493 493 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/GetUsersInRole", ReplyAction="http://tempuri.org/IAuthenticationService/GetUsersInRoleResponse")] 494 HeuristicLab.Services.Authentication. ServiceClient.User[] GetUsersInRole(System.Guid roleId);494 HeuristicLab.Services.Authentication.User[] GetUsersInRole(System.Guid roleId); 495 495 496 496 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/GetApplication", ReplyAction="http://tempuri.org/IAuthenticationService/GetApplicationResponse")] 497 HeuristicLab.Services.Authentication. ServiceClient.Application GetApplication(System.Guid id);497 HeuristicLab.Services.Authentication.Application GetApplication(System.Guid id); 498 498 499 499 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/InsertApplication", ReplyAction="http://tempuri.org/IAuthenticationService/InsertApplicationResponse")] 500 bool InsertApplication(HeuristicLab.Services.Authentication.ServiceClient.Application application);500 System.Guid InsertApplication(HeuristicLab.Services.Authentication.Application application); 501 501 502 502 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/DeleteApplication", ReplyAction="http://tempuri.org/IAuthenticationService/DeleteApplicationResponse")] … … 504 504 505 505 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/GetApplications", ReplyAction="http://tempuri.org/IAuthenticationService/GetApplicationsResponse")] 506 HeuristicLab.Services.Authentication.ServiceClient.Application[] GetApplications(); 506 HeuristicLab.Services.Authentication.Application[] GetApplications(); 507 508 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAuthenticationService/UpdateApplication", ReplyAction="http://tempuri.org/IAuthenticationService/UpdateApplicationResponse")] 509 bool UpdateApplication(HeuristicLab.Services.Authentication.Application application); 507 510 } 508 511 509 512 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 510 public interface IAuthenticationServiceChannel : HeuristicLab.Services.Authentication. ServiceClient.IAuthenticationService, System.ServiceModel.IClientChannel513 public interface IAuthenticationServiceChannel : HeuristicLab.Services.Authentication.IAuthenticationService, System.ServiceModel.IClientChannel 511 514 { 512 515 } … … 514 517 [System.Diagnostics.DebuggerStepThroughAttribute()] 515 518 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 516 public partial class AuthenticationServiceClient : System.ServiceModel.ClientBase<HeuristicLab.Services.Authentication. ServiceClient.IAuthenticationService>, HeuristicLab.Services.Authentication.ServiceClient.IAuthenticationService519 public partial class AuthenticationServiceClient : System.ServiceModel.ClientBase<HeuristicLab.Services.Authentication.IAuthenticationService>, HeuristicLab.Services.Authentication.IAuthenticationService 517 520 { 518 521 … … 541 544 } 542 545 543 public HeuristicLab.Services.Authentication. ServiceClient.User GetUser(System.Guid id)546 public HeuristicLab.Services.Authentication.User GetUser(System.Guid id) 544 547 { 545 548 return base.Channel.GetUser(id); 546 549 } 547 550 548 public HeuristicLab.Services.Authentication. ServiceClient.User[] GetUsers(System.Guid applicationId)551 public HeuristicLab.Services.Authentication.User[] GetUsers(System.Guid applicationId) 549 552 { 550 553 return base.Channel.GetUsers(applicationId); 551 554 } 552 555 553 public bool InsertUser(HeuristicLab.Services.Authentication.ServiceClient.User user)556 public System.Guid InsertUser(HeuristicLab.Services.Authentication.User user) 554 557 { 555 558 return base.Channel.InsertUser(user); … … 561 564 } 562 565 563 public bool UpdateUser(HeuristicLab.Services.Authentication. ServiceClient.User user)566 public bool UpdateUser(HeuristicLab.Services.Authentication.User user) 564 567 { 565 568 return base.Channel.UpdateUser(user); … … 576 579 } 577 580 578 public HeuristicLab.Services.Authentication. ServiceClient.Role[] GetRolesForUser(System.Guid userId)581 public HeuristicLab.Services.Authentication.Role[] GetRolesForUser(System.Guid userId) 579 582 { 580 583 return base.Channel.GetRolesForUser(userId); 581 584 } 582 585 583 public HeuristicLab.Services.Authentication. ServiceClient.Role GetRole(System.Guid id)586 public HeuristicLab.Services.Authentication.Role GetRole(System.Guid id) 584 587 { 585 588 return base.Channel.GetRole(id); 586 589 } 587 590 588 public HeuristicLab.Services.Authentication. ServiceClient.Role[] GetRoles(System.Guid applicationId)591 public HeuristicLab.Services.Authentication.Role[] GetRoles(System.Guid applicationId) 589 592 { 590 593 return base.Channel.GetRoles(applicationId); 591 594 } 592 595 593 public bool InsertRole(HeuristicLab.Services.Authentication.ServiceClient.Role role)596 public System.Guid InsertRole(HeuristicLab.Services.Authentication.Role role) 594 597 { 595 598 return base.Channel.InsertRole(role); 596 599 } 597 600 598 public bool UpdateRole(HeuristicLab.Services.Authentication. ServiceClient.Role role)601 public bool UpdateRole(HeuristicLab.Services.Authentication.Role role) 599 602 { 600 603 return base.Channel.UpdateRole(role); … … 606 609 } 607 610 608 public HeuristicLab.Services.Authentication. ServiceClient.User[] GetUsersInRole(System.Guid roleId)611 public HeuristicLab.Services.Authentication.User[] GetUsersInRole(System.Guid roleId) 609 612 { 610 613 return base.Channel.GetUsersInRole(roleId); 611 614 } 612 615 613 public HeuristicLab.Services.Authentication. ServiceClient.Application GetApplication(System.Guid id)616 public HeuristicLab.Services.Authentication.Application GetApplication(System.Guid id) 614 617 { 615 618 return base.Channel.GetApplication(id); 616 619 } 617 620 618 public bool InsertApplication(HeuristicLab.Services.Authentication.ServiceClient.Application application)621 public System.Guid InsertApplication(HeuristicLab.Services.Authentication.Application application) 619 622 { 620 623 return base.Channel.InsertApplication(application); … … 626 629 } 627 630 628 public HeuristicLab.Services.Authentication. ServiceClient.Application[] GetApplications()631 public HeuristicLab.Services.Authentication.Application[] GetApplications() 629 632 { 630 633 return base.Channel.GetApplications(); 631 634 } 635 636 public bool UpdateApplication(HeuristicLab.Services.Authentication.Application application) 637 { 638 return base.Channel.UpdateApplication(application); 639 } 632 640 } 633 641 } -
branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/ServiceClients/GenerateServiceClients.cmd
r4789 r4962 1 1 echo off 2 2 3 echo .3 echo 4 4 echo ******************************************************************************************* 5 5 echo Generating OKBService client 6 echo .6 echo 7 7 8 8 svcutil.exe ^ 9 http://localhost:8732/Design_Time_Addresses/ OKB-3.3/AuthenticationService/mex ^9 http://localhost:8732/Design_Time_Addresses/HeuristicLab.Services.Authentication/AuthenticationService/mex ^ 10 10 /out:AuthenticationServiceClient ^ 11 /namespace:*,HeuristicLab.Services.Authentication .ServiceClient^11 /namespace:*,HeuristicLab.Services.Authentication ^ 12 12 /targetClientVersion:Version35 ^ 13 13 /enableDataBinding ^ 14 14 /config:..\app.config 15 15 16 echo .16 echo 17 17 echo --------------------------------------------------------------------------------------- 18 18 echo !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! 19 echo .19 echo 20 20 echo Following modifications have to be done manually in generated data contracts: 21 21 echo * Remove method "protected void RaisePropertyChanged(string propertyName)" in OKBItem 22 echo .22 echo 23 23 echo !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! 24 24 echo --------------------------------------------------------------------------------------- 25 echo .25 echo 26 26 echo Generation of OKBService client finished. 27 27 echo ******************************************************************************************* 28 echo .29 echo .28 echo 29 echo 30 30 echo ******************************************************************************************* 31 31 echo Generating AuthenticationService client 32 echo .32 echo 33 33 34 34 -
branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/ServiceClients/Role.cs
r4927 r4962 4 4 using System.Text; 5 5 6 namespace HeuristicLab.Services.Authentication .ServiceClient6 namespace HeuristicLab.Services.Authentication 7 7 { 8 8 public partial class Role 9 9 { 10 11 // IEnumerable<User> Users; 12 10 13 } 11 14 } -
branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/ServiceClients/User.cs
r4927 r4962 4 4 using System.Text; 5 5 6 namespace HeuristicLab.Services.Authentication .ServiceClient6 namespace HeuristicLab.Services.Authentication 7 7 { 8 8 public partial class User 9 9 { 10 // IEnumerable<Role> Roles 11 10 12 } 11 13 } -
branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/app.config
r4927 r4962 1 <?xml version="1.0" encoding="utf-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <configuration> 3 <system.serviceModel> 4 <bindings> 5 <wsHttpBinding> 6 7 <binding name="WSHttpBinding_IAuthenticationService" closeTimeout="00:01:00" 8 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 9 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 10 maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 11 messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" 12 allowCookies="false"> 13 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 14 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 15 <reliableSession ordered="true" inactivityTimeout="00:10:00" 16 enabled="false" /> 17 <security mode="Message"> 18 <transport clientCredentialType="Windows" proxyCredentialType="None" 19 realm="" /> 20 <message clientCredentialType="UserName" negotiateServiceCredential="true" 21 algorithmSuite="Default" /> 22 </security> 23 </binding> 24 </wsHttpBinding> 25 </bindings> 26 <client> 27 28 <endpoint address="http://localhost:8732/Design_Time_Addresses/HeuristicLab.Services.Authentication/AuthenticationService" 29 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IAuthenticationService" 30 contract="HeuristicLab.Services.Authentication.IAuthenticationService" 31 name="WSHttpBinding_IAuthenticationService"> 32 <identity> 33 <certificate encodedValue="AwAAAAEAAAAUAAAAD/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=" /> 34 </identity> 35 </endpoint> 36 </client> 37 </system.serviceModel> 3 <system.serviceModel> 4 <bindings> 5 <wsHttpBinding> 6 <binding name="WSHttpBinding_IAuthenticationService" closeTimeout="00:01:00" 7 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 8 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 9 maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 10 messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" 11 allowCookies="false"> 12 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 13 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 14 <reliableSession ordered="true" inactivityTimeout="00:10:00" 15 enabled="false" /> 16 <security mode="Message"> 17 <transport clientCredentialType="Windows" proxyCredentialType="None" 18 realm="" /> 19 <message clientCredentialType="UserName" negotiateServiceCredential="true" 20 algorithmSuite="Default" /> 21 </security> 22 </binding> 23 </wsHttpBinding> 24 </bindings> 25 <client> 26 <endpoint address="http://localhost:8732/Design_Time_Addresses/HeuristicLab.Services.Authentication/AuthenticationService" 27 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IAuthenticationService" 28 contract="HeuristicLab.Services.Authentication.IAuthenticationService" 29 name="WSHttpBinding_IAuthenticationService"> 30 <identity> 31 <certificate encodedValue="AwAAAAEAAAAUAAAAAV7xMfFtgnY5+8sJyWRHHa0QvTcgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBXQX+6QCO6m0LTqFCaKnh3MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDkyNzE5MTIxNFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDa4H45oXaRry7PwK3dI6AJWpxyEqmDBP+SnIZelLsPfWQ1oFPqH1zygaza0ZP+Gq5kxrL2cRrS9eiq/AlacWMOFsIEM6SZ/HBsaA9IiHssv3KH4uKwjcOWP1/TwL1OlwGDJszXrGmslrdFXg6I3grFlks8nYPVmuIzwVfmUKO+nwIDAQABo0kwRzBFBgNVHQEEPjA8gBDRH5aGMOUZ99XrCILH02uuoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBXQX+6QCO6m0LTqFCaKnh3MAkGBSsOAwIdBQADgYEAtRZiYmZ7mKH0wkDd8v+33g8KU8mFiBS26hUowCpcCvYpG23FaVXbBua+zTt45RIBcEQUVdLOdtIAMogymV4sq9JafaU2Y9Dh9gnSqOF2KplC/xyf5f+QWwCZ4Yljr9g1BizWoOE6SF1TcjL66iZ09JMwYJKO9V3iuOosnzJ8DEA=" /> 32 </identity> 33 </endpoint> 34 </client> 35 </system.serviceModel> 38 36 </configuration> -
branches/UserManagement/HeuristicLab.Services.Authentication.TestClient2/HeuristicLab.Services.Authentication.TestClient2.csproj
r4789 r4962 38 38 <Reference Include="System.Core" /> 39 39 <Reference Include="System.Drawing" /> 40 <Reference Include="System.Runtime.Serialization" /> 41 <Reference Include="System.ServiceModel" /> 40 42 <Reference Include="System.Windows.Forms" /> 41 43 <Reference Include="System.Xml.Linq" /> … … 60 62 <Name>HeuristicLab.Services.Authentication.DataTransfer</Name> 61 63 </ProjectReference> 64 <ProjectReference Include="..\HeuristicLab.Services.Authentication.ServiceClients\HeuristicLab.Services.Authentication.ServiceClient.csproj"> 65 <Project>{8E698904-936D-4C7A-AB0D-6225778D2968}</Project> 66 <Name>HeuristicLab.Services.Authentication.ServiceClient</Name> 67 </ProjectReference> 62 68 <ProjectReference Include="..\HeuristicLab.Services.Authentication\HeuristicLab.Services.Authentication.csproj"> 63 69 <Project>{9FD3F26D-B051-4F4C-9C66-4A361EE357AD}</Project> … … 71 77 </ItemGroup> 72 78 <ItemGroup> 79 <None Include="app.config" /> 80 <None Include="HeuristicLab.snk" /> 73 81 <None Include="Properties\DataSources\HeuristicLab.Services.Authentication.DataTransfer.Application.datasource" /> 74 82 <None Include="Properties\DataSources\HeuristicLab.Services.Authentication.DataTransfer.Role.datasource" /> 75 83 <None Include="Properties\DataSources\HeuristicLab.Services.Authentication.DataTransfer.User.datasource" /> 84 </ItemGroup> 85 <ItemGroup> 86 <WCFMetadata Include="Service References\" /> 76 87 </ItemGroup> 77 88 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/UserManagement/HeuristicLab.Services.Authentication.TestClient2/Program.cs
r4789 r4962 4 4 using System.Text; 5 5 using HeuristicLab.Services.Authentication.DataTransfer; 6 using HeuristicLab.Services.Authentication; 7 using System.ServiceModel.Security; 8 using HeuristicLab.Services.Authentication.ServiceClients; 6 9 7 10 namespace HeuristicLab.Services.Authentication.TestClient2 … … 11 14 static void Main(string[] args) 12 15 { 13 System.Windows.Forms.Application.Run(new UserManagement()); 16 IEnumerable<Application> apps = AuthenticationClient.Instance.Applications; 17 18 foreach (Application app in apps) 19 { 20 Console.WriteLine(app.Name); 21 } 22 Console.ReadLine(); 23 24 //System.Windows.Forms.Application.Run(new UserManagement()); 14 25 } 15 26 } -
branches/UserManagement/HeuristicLab.Services.Authentication/AuthenticationService.cs
r4926 r4962 52 52 } 53 53 54 public boolInsertUser(User user)54 public Guid InsertUser(User user) 55 55 { 56 56 if (user != null) … … 71 71 catch (Exception ex) 72 72 { 73 return false;74 } 75 76 return true;77 78 79 } 80 81 } 82 return false;73 return Guid.Empty; 74 } 75 76 return user.Id; 77 78 79 } 80 81 } 82 return Guid.Empty; 83 83 } 84 84 … … 170 170 } 171 171 172 public boolInsertRole(Role role)172 public Guid InsertRole(Role role) 173 173 { 174 174 … … 188 188 catch (Exception ex) 189 189 { 190 return false;191 } 192 193 return true;194 } 195 196 } 197 return false;190 return Guid.Empty; 191 } 192 193 return role.Id; 194 } 195 196 } 197 return Guid.Empty; 198 198 } 199 199 … … 353 353 #region Application 354 354 355 public boolInsertApplication(Application application)355 public Guid InsertApplication(Application application) 356 356 { 357 357 if (application != null) … … 370 370 catch (Exception ex) 371 371 { 372 return false;373 } 374 375 return true;376 377 } 378 379 } 380 return false;372 return Guid.Empty; 373 } 374 375 return application.Id; 376 377 } 378 379 } 380 return Guid.Empty; 381 381 } 382 382 -
branches/UserManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.csproj
r4940 r4962 51 51 </ItemGroup> 52 52 <ItemGroup> 53 <None Include="App.config" /> 53 <None Include="App.config"> 54 <SubType>Designer</SubType> 55 </None> 54 56 <None Include="HeuristicLab.snk" /> 55 57 </ItemGroup> -
branches/UserManagement/HeuristicLab.Services.Authentication/Interfaces/IAuthenticationService.cs
r4926 r4962 20 20 21 21 [OperationContract] 22 boolInsertUser(User user);22 Guid InsertUser(User user); 23 23 24 24 [OperationContract] … … 50 50 51 51 [OperationContract] 52 boolInsertRole(Role role);52 Guid InsertRole(Role role); 53 53 54 54 [OperationContract] … … 69 69 70 70 [OperationContract] 71 boolInsertApplication(Application application);71 Guid InsertApplication(Application application); 72 72 73 73 [OperationContract] … … 77 77 IEnumerable<DataTransfer.Application> GetApplications(); 78 78 79 80 [OperationContract] 81 bool UpdateApplication(Application application); 82 79 83 #endregion 80 84 -
branches/UserManagement/HeuristicLab.Services.Authentication/app.config
r4926 r4962 28 28 <system.serviceModel> 29 29 <bindings> 30 <netTcpBinding>31 <binding name="DefaultNetTcpBinding" openTimeout="00:00:30" receiveTimeout="00:00:30"32 sendTimeout="00:00:30" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">33 <readerQuotas maxArrayLength="2147483647" />34 <reliableSession inactivityTimeout="00:00:30" enabled="false" />35 <security mode="Message">36 <message clientCredentialType="UserName" />37 </security>38 </binding>39 </netTcpBinding>40 30 <wsHttpBinding> 41 <binding name="DefaultWsHttpBinding" maxReceivedMessageSize="200000000"> 42 <readerQuotas maxArrayLength="200000000" maxBytesPerRead="200000000" /> 31 <binding name="DefaultWSHttpBinding"> 43 32 <security mode="Message"> 44 33 <message clientCredentialType="UserName" /> … … 46 35 </binding> 47 36 </wsHttpBinding> 37 48 38 <mexHttpBinding> 49 <binding name="DefaultMex HttpBinding" />39 <binding name="DefaultMexBinding" /> 50 40 </mexHttpBinding> 51 41 </bindings> 52 42 53 43 54 44 <behaviors> 55 45 <serviceBehaviors> 56 <behavior name="Default ServiceBehavior">46 <behavior name="DefaultBehavior"> 57 47 <serviceMetadata httpGetEnabled="true" /> 58 48 <serviceDebug includeExceptionDetailInFaults="true" /> 59 <serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="AspNetSqlRoleProvider" /> 49 <serviceAuthorization principalPermissionMode="UseAspNetRoles" 50 roleProviderName="AspNetSqlRoleProvider" /> 60 51 <serviceCredentials> 61 52 <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" /> 62 <userNameAuthentication userNamePasswordValidationMode="Windows" /> 53 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" 54 membershipProviderName="AspNetSqlMembershipProvider" /> 63 55 </serviceCredentials> 64 56 </behavior> … … 67 59 68 60 <services> 69 <service behaviorConfiguration="DefaultServiceBehavior" name="HeuristicLab.Services.Authentication.AuthenticationService"> 70 <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="DefaultMexHttpBinding" 71 name="mexHttpBinding" contract="IMetadataExchange"> 72 <identity> 73 <certificate encodedValue="AwAAAAEAAAAUAAAAD/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=" /> 74 </identity> 61 <service behaviorConfiguration="DefaultBehavior" name="HeuristicLab.Services.Authentication.AuthenticationService"> 62 <endpoint binding="wsHttpBinding" bindingConfiguration="DefaultWSHttpBinding" 63 contract="HeuristicLab.Services.Authentication.IAuthenticationService" listenUriMode="Explicit"> 75 64 </endpoint> 76 <endpoint binding="wsHttpBinding" bindingConfiguration="DefaultWsHttpBinding" 77 name="wsHttpBinding" contract="HeuristicLab.Services.Authentication.IAuthenticationService"> 78 <identity> 79 <certificate encodedValue="AwAAAAEAAAAUAAAAD/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=" /> 80 </identity> 65 66 <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="DefaultMexBinding" 67 contract="IMetadataExchange" listenUriMode="Explicit"> 81 68 </endpoint> 82 69 <host> … … 87 74 </service> 88 75 </services> 76 89 77 </system.serviceModel> 90 78
Note: See TracChangeset
for help on using the changeset viewer.