开发者

WCF PrincipalPermission opertaion properties not working

I am trying to add this property to my operation. i am using Basic authentication on IIS over basic http binding. but i keep gettin开发者_JS百科g access denied.

[PrincipalPermission(SecurityAction.Demand, Name = "username")]

do i need to add domain name as well?


from MSDN, If the authentication provider is Windows NT, Name is the same as the user's Windows NT login name (in the form "DomainName\UserName"). Check the documentation for the host to determine which authentication provider it uses and how it determines the identity of the current principal.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜