Can anyone provide me an example WinForms application that implements the concept of User authentication and authorization one the basis of Roles or Groups?
The application should allow access of users to the main-menu on the basis of their roles.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are building the menu from a database table, you can security trim it by joining it to another table or view that excludes records on the basis of the permissions set.
The diagram below illustrates the basics of setting up role permissions for users, and contains a couple of other tables for security trimming individual controls on the form as well.
Controls Based Security in a Windows Forms Application
http://www.simple-talk.com/dotnet/windows-forms/controls-based-security-in-a-windows-forms-application/
.
(source: simple-talk.com)