You need to ensure that the service accesses these resources on behalf of the originating caller

You are developing a Windows Communication Foundation (WCF) service. The service
needs to access out-of-process resources. You need to ensure that the service accesses
these resources on behalf of the originating caller. What should you do?

You are developing a Windows Communication Foundation (WCF) service. The service
needs to access out-of-process resources. You need to ensure that the service accesses
these resources on behalf of the originating caller. What should you do?

A.
Set the PrincipalPermissionAttribute on the service contract and update the
bindingConfiguration attribute in the endpoint element of the configuration file to
wsHttpBinding.

B.
Set the PrincipalPermissionAttribute on the service contract and update the binding
attribute in the endpoint element of the configuration file to wsHttpBinding.

C.
Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to
TokenImpersonationLevel.Impersonation.

D.
Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to
TokenImpersonationLevel.Delegation.

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *