开发者

wpf user authorization and authentication

In my application I need to control who can read and write in the different GUI elements. The users will have a role. But how can I set the authorization on the different elements to check if the user is authorized to writ开发者_如何学Ce or not? Are there any good examples around?


See class WindowsIdentity. It shows you all user data.

If you use MS AD, I recommend you to use Domain level 2003+, to get more data from this class.


You can try this UIAuth It's an infrastructure that allow you to control authorization base on VM properties. with behaviors.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜