Guest User

Untitled

a guest
Oct 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. <endpoint address="ChartServices" binding="netTcpBinding" bindingConfiguration="netTcpBindingConfig"
  2. name="netTcp_UserService" contract="ChartServices.Services_Contract.IUserService" />
  3.  
  4. <endpoint address="mex" binding="mexTcpBinding" name="mexTcp"
  5. contract="IMetadataExchange" />
  6. <endpoint address="mex" binding="mexHttpBinding" name="mexHttp"
  7. contract="IMetadataExchange" />
  8. <host>
  9. <baseAddresses>
  10. <add baseAddress="net.tcp://localhost:8733/" />
  11. <add baseAddress="http://localhost:8734/" />
  12. </baseAddresses>
  13. </host>
  14. </service>
  15. </services>
  16. <bindings>
  17. <wsHttpBinding>
  18. <binding name="wsBindingConfig">
  19. <security mode="Message">
  20. <message clientCredentialType="UserName"/>
  21. </security>
  22. </binding>
  23. </wsHttpBinding>
  24. <netTcpBinding>
  25. <binding name="netTcpBindingConfig">
  26. <security mode="Message">
  27. <message clientCredentialType="UserName"/>
  28. </security>
  29. </binding>
  30. </netTcpBinding>
  31. </bindings>
  32. <behaviors>
  33. <serviceBehaviors>
  34. <behavior name="mexBehavior">
  35. <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
  36. <serviceDebug includeExceptionDetailInFaults="true" />
  37. <serviceCredentials>
  38. <clientCertificate>
  39. <authentication certificateValidationMode="PeerTrust" />
  40. </clientCertificate>
  41. <serviceCertificate findValue="RootCATest" storeLocation="LocalMachine"
  42. storeName="My" x509FindType="FindByIssuerName" />
  43. <userNameAuthentication userNamePasswordValidationMode="Custom"
  44. customUserNamePasswordValidatorType="ChartServices.CustomUserNameValidator, ChartServices" />
  45. </serviceCredentials>
  46. <serviceAuthorization principalPermissionMode="Custom" serviceAuthorizationManagerType="ChartServices.MyServiceAuthorizationManager, ChartServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
  47. <authorizationPolicies>
  48. <add policyType="ChartServices.AuthorizationPolicy, ChartServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
  49. </authorizationPolicies>
  50. </serviceAuthorization>
  51. </behavior>
  52. </serviceBehaviors>
  53. </behaviors>
Add Comment
Please, Sign In to add comment