<system.serviceModel> <diagnostics> <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtTransportLevel="true" /> </diagnostics> <services> <service name="LeastPrivilege.CustomPrincipalService" behaviorConfiguration="Behavior"> <host> <baseAddresses> <add baseAddress="net.tcp://localhost:9001/Services"/> </baseAddresses> </host> <endpoint name="CustomPrincipalService" binding="netTcpBinding" contract="LeastPrivilege.IService" bindingConfiguration="NetTcpBindingConfig"/> <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" /> </service> </services> <bindings> <netTcpBinding> <binding name="NetTcpBindingConfig"> <security mode="Transport"> <transport clientCredentialType="Windows"/> <message clientCredentialType="Windows" algorithmSuite="Default" /> </security> </binding> </netTcpBinding> </bindings> <behaviors> <serviceBehaviors> <behavior name="Behavior"> <serviceMetadata httpGetEnabled="false"/> <serviceDebug includeExceptionDetailInFaults="false"/> <serviceAuthorization principalPermissionMode="Custom"> <authorizationPolicies> <add policyType="LeastPrivilege.CombinedRolesPolicy, CustomPrincipalService"/> </authorizationPolicies> </serviceAuthorization> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)