Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3873496
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:02:36+00:00 2026-05-19T22:02:36+00:00

I have a web project using asp.net mvc3. Now clients ask for a security

  • 0

I have a web project using asp.net mvc3. Now clients ask for a security management feature. Here’s some context of this project:

  1. A public web site using form authentication.
  2. Client wants to self-management the security.(including roles, users, actions on resources).
  3. User is a domain model of the project.
  4. Granularity of access controll should at least goes to action level (return an unauthorized page to user when user do an unauthorized action). But it is preferred to change view content based on user’s authorization (dynamically show only authorized elements on view page).

I’m not quite good at asp.net mvc . I don’t know whether the build-in memberprovider and roleprovider is OK for this requirement. But I prefer to build up my own model provider for (resource categories, actions, roles, group etc.) for totally control. But there seems to be other factors to concern like cache, performance or something else.

Can someone give me some advices on how to implementing this feature and how to apply it into my project? Better some sample projects.

Thanks a lot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:02:37+00:00Added an answer on May 19, 2026 at 10:02 pm

    The approach I take pretty much boils down to an Access Control List that is a series of keys to represent the type of access and a series of bit values for the type of action (Read, Insert, Modify, and Delete).

    The whole site is populated via a REST style API utilizing ajax and json. Each piece of functionality is wrapped with a series of permission tests (I cache the Access Control List).

    Example scenario:
    User (Admin) is accessing a list of users.

    This would call for the following Access keys and actions to be evaluated for the code being executed:

    • Page load:
      • “/Users/List”
        • Read
    • REST API Access:
      • “/Users/Owner”
        • Read
      • “/Users/NotOwner”
        • Read

    Obviously these conditions are compared to the logged in user’s assigned role and the Access Control permission associated to that role.

    With thee access list and permissions stored in the database a user can alter what access item and action is assigned to which roles.

    Because you’re going to give the users the ability to modify these associations it would be very beneficial to add a description for each Access Control item.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a sample project using ASP.NET MVC 3 Web Application (Razor) template.
I'm working on a Web project using Asp.Net MVC, which I'll have to deploy
I have done a web project ( using C# + SQL CE + ASP.NET
I have a Silverlight project (with ASP.net MVC web project) Suddenly, when I press
I have a standard ASP.NET MVC (RC Refresh) web project, with the standard ASP.NET
I have an asp.net web project that references a domain project. From within the
I am working on a c# project using ASP .net. I have a list
I am using ASP.NET Dynamic Data Entities project to generate a web application for
I have a project using Asp.Net 3.5 and MVC 1. Everything runs perfectly on
Currently we're using Web Application project, so we have a gain with compilation. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.