- Timestamp:
- 11/27/10 10:48:24 (14 years ago)
- Location:
- branches/UserManagement/HeuristicLab.Services.Authentication
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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.