What are two possible properties you can use to achieve this goal?

A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP
binding with a custom principal permission mode. The binding requires users to provide
their Windows logon credentials. You need to retrieve the identity of the caller. What are two
possible properties you can use to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)

A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP
binding with a custom principal permission mode. The binding requires users to provide
their Windows logon credentials. You need to retrieve the identity of the caller. What are two
possible properties you can use to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)

A.
ServiceSecurity Context.Current.Primary Identity.Name

B.
OperationContext.Current.ServiceSecurity Context.Primary Identity.Name

C.
Thread.CurrentPrincipal.Identity-Name

D.
HttpContext.Current.User.Identity.Name



Leave a Reply 0

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