开发者

WCF PrincipalPermission opertaion properties not working

开发者 https://www.devze.com 2023-03-23 05:08 出处:网络
I am trying to add this property to my operation. i am using Basic authentication on IIS over basic http binding.

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

精彩评论

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

关注公众号