Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/27/10 10:48:24 (14 years ago)
Author:
mjesner
Message:

#1196

Location:
branches/UserManagement/HeuristicLab.Services.Authentication
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/UserManagement/HeuristicLab.Services.Authentication/AuthenticationService.cs

    r4926 r4962  
    5252        }
    5353
    54         public bool InsertUser(User user)
     54        public Guid InsertUser(User user)
    5555        {
    5656            if (user != null)
     
    7171                    catch (Exception ex)
    7272                    {
    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;
    8383        }
    8484
     
    170170        }
    171171
    172         public bool InsertRole(Role role)
     172        public Guid InsertRole(Role role)
    173173        {
    174174
     
    188188                    catch (Exception ex)
    189189                    {
    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;
    198198        }
    199199
     
    353353        #region Application
    354354
    355         public bool InsertApplication(Application application)
     355        public Guid InsertApplication(Application application)
    356356        {
    357357            if (application != null)
     
    370370                    catch (Exception ex)
    371371                    {
    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;
    381381        }
    382382
  • branches/UserManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.csproj

    r4940 r4962  
    5151  </ItemGroup>
    5252  <ItemGroup>
    53     <None Include="App.config" />
     53    <None Include="App.config">
     54      <SubType>Designer</SubType>
     55    </None>
    5456    <None Include="HeuristicLab.snk" />
    5557  </ItemGroup>
  • branches/UserManagement/HeuristicLab.Services.Authentication/Interfaces/IAuthenticationService.cs

    r4926 r4962  
    2020
    2121        [OperationContract]
    22         bool InsertUser(User user);
     22        Guid InsertUser(User user);
    2323
    2424        [OperationContract]
     
    5050
    5151        [OperationContract]
    52         bool InsertRole(Role role);
     52        Guid InsertRole(Role role);
    5353
    5454        [OperationContract]
     
    6969
    7070        [OperationContract]
    71         bool InsertApplication(Application application);
     71        Guid InsertApplication(Application application);
    7272
    7373        [OperationContract]
     
    7777        IEnumerable<DataTransfer.Application> GetApplications();
    7878
     79
     80        [OperationContract]
     81        bool UpdateApplication(Application application);
     82
    7983        #endregion
    8084
  • branches/UserManagement/HeuristicLab.Services.Authentication/app.config

    r4926 r4962  
    2828  <system.serviceModel>
    2929    <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>
    4030      <wsHttpBinding>
    41         <binding name="DefaultWsHttpBinding" maxReceivedMessageSize="200000000">
    42           <readerQuotas maxArrayLength="200000000" maxBytesPerRead="200000000" />
     31        <binding name="DefaultWSHttpBinding">
    4332          <security mode="Message">
    4433            <message clientCredentialType="UserName" />
     
    4635        </binding>
    4736      </wsHttpBinding>
     37
    4838      <mexHttpBinding>
    49         <binding name="DefaultMexHttpBinding" />
     39        <binding name="DefaultMexBinding" />
    5040      </mexHttpBinding>
    5141    </bindings>
    5242
    53    
     43
    5444    <behaviors>
    5545      <serviceBehaviors>
    56         <behavior name="DefaultServiceBehavior">
     46        <behavior name="DefaultBehavior">
    5747          <serviceMetadata httpGetEnabled="true" />
    5848          <serviceDebug includeExceptionDetailInFaults="true" />
    59           <serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="AspNetSqlRoleProvider" />
     49          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
     50            roleProviderName="AspNetSqlRoleProvider" />
    6051          <serviceCredentials>
    6152            <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" />
    62             <userNameAuthentication  userNamePasswordValidationMode="Windows" />
     53            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
     54              membershipProviderName="AspNetSqlMembershipProvider" />
    6355          </serviceCredentials>
    6456        </behavior>
     
    6759
    6860    <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">
    7564        </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">
    8168        </endpoint>
    8269        <host>
     
    8774      </service>
    8875    </services>
     76   
    8977  </system.serviceModel>
    9078
Note: See TracChangeset for help on using the changeset viewer.