I'm having different roles mapped for different users in my application. I need to implement a role management so that it acts on page level. How can i do this? I'm thinking of saving aspx page file paths in the Db and based on the user loggedin need to
display the menu and everything... Any live example for this other than asp.net membership provider?
Thanks for the reply, How about performance of the application if all the menu links are Db driven that too based on roles? Also i'm planning to use Entity Framework, LINQ and WCF services(Service Layer)..
1) Make it correct, then 2) Optimize for performance. As for the optimization -- in-memory caching seems like a good way to avoid database round-trips. Other types of caching would also help.
pavanpuligan...
Member
78 Points
291 Posts
Role based security and page level authorization
May 23, 2012 10:23 AM|LINK
Hi,
I'm having different roles mapped for different users in my application. I need to implement a role management so that it acts on page level. How can i do this? I'm thinking of saving aspx page file paths in the Db and based on the user loggedin need to display the menu and everything... Any live example for this other than asp.net membership provider?
Thanks
Time's so short, you cant make a debug!!
DarthSwian
Star
12771 Points
2361 Posts
Re: Role based security and page level authorization
May 23, 2012 11:01 AM|LINK
very simple if you use the asp.net membership role provider.
Look at this article
http://www.4guysfromrolla.com/articles/121405-1.aspx
Seek and ye shall find or http://lmgtfy.com/
BrockAllen
All-Star
27522 Points
4901 Posts
MVP
Re: Role based security and page level authorization
May 23, 2012 01:14 PM|LINK
ASP.NET allows for URL-based authorization. You can setup rules in web.config for which roles can access what pages or directories.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
pavanpuligan...
Member
78 Points
291 Posts
Re: Role based security and page level authorization
May 24, 2012 11:43 AM|LINK
Hi,
Thanks for the reply, How about performance of the application if all the menu links are Db driven that too based on roles? Also i'm planning to use Entity Framework, LINQ and WCF services(Service Layer)..
Thanks,
Time's so short, you cant make a debug!!
BrockAllen
All-Star
27522 Points
4901 Posts
MVP
Re: Role based security and page level authorization
May 24, 2012 11:51 AM|LINK
1) Make it correct, then 2) Optimize for performance. As for the optimization -- in-memory caching seems like a good way to avoid database round-trips. Other types of caching would also help.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/