serviceBehaviors.config 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <system.serviceModel>
  4. <behaviors>
  5. <serviceBehaviors>
  6. <behavior name="NewBehavior">
  7. <serviceAuthorization principalPermissionMode="UseAspNetRoles"
  8. roleProviderName="RoleProvider" impersonateCallerForAllOperations="true"
  9. serviceAuthorizationManagerType="SerAuthManagType">
  10. <authorizationPolicies>
  11. <add policyType="PolicyType1" />
  12. <add policyType="PolicyType2" />
  13. </authorizationPolicies>
  14. </serviceAuthorization>
  15. <dataContractSerializer ignoreExtensionDataObject="true" maxItemsInObjectGraph="32768" />
  16. <serviceCredentials type="ServiceCredentialsType">
  17. <clientCertificate>
  18. <certificate findValue="FindValue" storeLocation="CurrentUser"
  19. storeName="Root" x509FindType="FindByIssuerName" />
  20. <authentication customCertificateValidatorType="CustomCertificateValidationType"
  21. certificateValidationMode="PeerOrChainTrust" revocationMode="Offline"
  22. trustedStoreLocation="CurrentUser" includeWindowsGroups="false"
  23. mapClientCertificateToWindowsAccount="true" />
  24. </clientCertificate>
  25. <serviceCertificate findValue="FindValue" storeLocation="CurrentUser"
  26. storeName="Root" x509FindType="FindByIssuerName" />
  27. <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
  28. includeWindowsGroups="false" membershipProviderName="MembershipProviderName"
  29. customUserNamePasswordValidatorType="CustomUserNamePasswordValidatorType"
  30. cacheLogonTokens="true" maxCachedLogonTokens="252" cachedLogonTokenLifetime="00:30:00" />
  31. <windowsAuthentication includeWindowsGroups="false" allowAnonymousLogons="true" />
  32. <peer>
  33. <certificate findValue="FindValue" storeLocation="LocalMachine"
  34. storeName="Root" x509FindType="FindByIssuerName" />
  35. <peerAuthentication customCertificateValidatorType="CustomCertificateValidatorType"
  36. certificateValidationMode="Custom" revocationMode="Offline" trustedStoreLocation="LocalMachine" />
  37. <messageSenderAuthentication customCertificateValidatorType="CustomCertificateValidatorType"
  38. certificateValidationMode="None" revocationMode="Offline" trustedStoreLocation="LocalMachine" />
  39. </peer>
  40. <issuedTokenAuthentication customCertificateValidatorType="CustomCertificateValidatorType"
  41. certificateValidationMode="PeerOrChainTrust" revocationMode="Offline"
  42. trustedStoreLocation="CurrentUser" samlSerializerType="SalmSerializerType"
  43. allowUntrustedRsaIssuers="true">
  44. <knownCertificates>
  45. <add findValue="FindValue" storeLocation="CurrentUser" storeName="Root"
  46. x509FindType="FindByIssuerName" />
  47. </knownCertificates>
  48. </issuedTokenAuthentication>
  49. <secureConversationAuthentication securityStateEncoderType="SecurityStateEncoderType" />
  50. </serviceCredentials>
  51. <serviceDebug httpHelpPageEnabled="false" httpHelpPageUrl="http://help.page.url"
  52. httpsHelpPageEnabled="false" httpsHelpPageUrl="https://help.page.url"
  53. includeExceptionDetailInFaults="true" />
  54. <serviceMetadata externalMetadataLocation="http://external.metadata.location"
  55. httpGetEnabled="true" httpGetUrl="http://get.url" httpsGetEnabled="true"
  56. httpsGetUrl="https://get.url" policyVersion="Default" />
  57. <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="false"
  58. serviceAuthorizationAuditLevel="Success" messageAuthenticationAuditLevel="Success" />
  59. <serviceThrottling maxConcurrentCalls="32" maxConcurrentSessions="20"
  60. maxConcurrentInstances="14" />
  61. <serviceTimeouts transactionTimeout="00:03:00" />
  62. </behavior>
  63. </serviceBehaviors>
  64. </behaviors>
  65. </system.serviceModel>
  66. </configuration>