views:

216

answers:

4

Hi!

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 be 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

A: 

Maybe Client Application Services are useful for you.

Konamiman
A: 

Have a look at Membership provider class

Ngu Soon Hui
That's for web sites, not winforms applications.
ChrisF
A: 

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.

Burt
Application will be installed on users computer.
Adrian
Obviously, will that user be part of a network domain i.e will it be an application for a company or individual?
Burt
i suppose it could be used from external, but application itself would be a client for database server and i need authorization system on ui, which allows me to enable/disable some controls
Adrian
A: 

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 ;) )

Adrian