Authorization and authenthication for WinForm application
I'm starting to develop windows application and I've been looking around for some authenthication and authorization solution available, but no luck so far. I have to b开发者_运维问答e able to allow admin create users and roles, assign users to roles and define access to controls on form for specified roles (button enabled/disabled etc).
Is there any solution out there or maybe someone could give me short description of solution he's using?
Adrian
Maybe Client Application Services are useful for you.
Have a look at Membership provider class
It depend, will this be within a network domain or will people be able to access the application over the internet. If it is you would be looking at windows authentication otherwise ASP.Net authentication would work well. Look up the ASP.Net membershp provider as it would do a lot of the grunt work for you.
I hope this helps.
I'm thinking on creating standard users, roles, permissions table schema, add contorls table and permission would be 'for a role on a control' and then in form loading event fire up a method to set Enabled proprerty of controls due to user's role's permissions. Is this good idea or i should took a hammer and get this out of my head (and if i should, please tell me why ;) )
精彩评论