Question

I have a WPF application with a WCF service layer and a SQL database. I now want to restrict elements of the application so that certain functions are only available to those users with a particular role. For example, you will only be able to navigate to the settings screen if you are an administrator.

I would like a user to be a member of 1 or more authorisation groups and each authorisation group to have 1 or more roles associated.

A long time ago I used AzMan (Authorisation Manager) to do a similar thing. Does anyone think that there are better approaches? Is AzMan "old news"? Alternatives?

Thanks.

Was it helpful?

Solution

I don't think azman is old news, we are still using it....

Authorization and Entitlement solution on .Net like earlier in AzMan

Azman will do what you are asking....

OTHER TIPS

Well I'd do (actually I already did) the following.

I guess you got your business rules (users, groups) defined in your SQL Database. So you could simply do the Authorisation at the UserControl level. Give each of your UserControls the property hasAuthorization and bind it to the isEnabled property. You can also bind it to the Visibility attribute.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top