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

  • Home
  • SEARCH
  • 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 3944688
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:55:49+00:00 2026-05-20T00:55:49+00:00

I have the authentication portion of an ASP.NET 3.5 web application complete. I would

  • 0

I have the authentication portion of an ASP.NET 3.5 web application complete. I would like to know more about common authorization patterns.

May I present my current authorization structure:

I have a database with “Module” and “Operation” tables.
Modules represent systems in the application and operations represent actions that one is able to perform within a system.

Customer, Order, Billing would be a defined as a module.
An “operation” is related to a module: Customer.Add, Customer.Delete would be customer operations.

Each user has a role which has access to certain operations, depending on their role.

Please note that page menus are generated based on user’s access, and users will not see modules and operations they do not have access to.


My questions begin with how to implement an authorization scheme here, possibly using an existing pattern or technique.

How and when should I secure the module, and check the authorization of a user to perform an operation on said module?

I have not implemented this yet, but here is one way I thought of:

  1. User clicks on an operation: Module: Customers | Operation: Add
  2. In the click event I look at the user’s role, I verify that the user can perform the operation, then I fire the operation or direct the user accordingly.

Please pardon the obscure nature of this question. I am not sure what to ask here.

I am looking to see how people handle authorization, and how people allow / disallow access to business methods. I am not sure is declarative security is what I need, or if the simple example I provided above is the way to go.

There are many options for me here and the possibilities seem endless. Please let me know if there are any models or patterns I can look to handle authorization inside of an application.

  • 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-20T00:55:50+00:00Added an answer on May 20, 2026 at 12:55 am

    If you want it like that then start small.

    First implement functionality along the lines of public bool User.HasRightsFor(Module m, Action a) with overloads. It can be even static because you can get the current user from the system.

    You can then simply ask if the user has right for the current action/module/whatever and act accordingly.

    It is very similar to what you currently have thought of with the exception of that I would not look at the roles and then decice but directly return the result. You can solve the internals later and the system will be easier to modify.

    You can easily integrate such system with (e.g.) ASP.NET Role-Based Authorization.

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

Sidebar

Related Questions

I have authentication mode set to forms in my asp.net web.config but am still
I'd like to setup Tomcat on Windows and have authentication in my web application
I have Forms authentication setup for an ASP.NET 4.0 application on http://example.com - we'll
I would like to have the authentication and registration parts of my website encrypted
we are using a jquery tree in our asp.net mvc application and have forms
I have a site that requires Windows Authentication the application obtains the credential from
I have an application that is using Windows Authentication and a SqlRoleProvider for user
Can I have different login URL for different ASP .NET MVC3 areas? e.g. I
I've got an ASP .NET website which uses Forms authentication to secure certain parts
I have an authentication script ( CheckLogin.aspx ), and if any of the credentials

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.