Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. function-based authentication ???

function-based authentication ???

Scheduled Pinned Locked Moved ASP.NET
securityquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tee
    wrote on last edited by
    #1

    I found many article talking about role-based authentication. But for my jobs, i need more. My application has 4 groups of user, said admin, super user, user, and reviewer. however, the super user can assign/change a different set of functions that each user can use. If i use the role-based authentication, i have to set one role of a function, then i might have 20+ role. Is there another way to implement such need ???

    M I 2 Replies Last reply
    0
    • T Tee

      I found many article talking about role-based authentication. But for my jobs, i need more. My application has 4 groups of user, said admin, super user, user, and reviewer. however, the super user can assign/change a different set of functions that each user can use. If i use the role-based authentication, i have to set one role of a function, then i might have 20+ role. Is there another way to implement such need ???

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      IMO, you can implement a custom http module which is responsible for authorizing the user, its functionality looks like the built-in module UrlAuthorizationModule supported by the ASP.NET. Basically, the custom module hooks to the AuthorizeRequest event of the application, you can define your own rules in the web.config file or a seperate config file, and the custom module uses these rules to authorize the user.

      T 1 Reply Last reply
      0
      • M minhpc_bk

        IMO, you can implement a custom http module which is responsible for authorizing the user, its functionality looks like the built-in module UrlAuthorizationModule supported by the ASP.NET. Basically, the custom module hooks to the AuthorizeRequest event of the application, you can define your own rules in the web.config file or a seperate config file, and the custom module uses these rules to authorize the user.

        T Offline
        T Offline
        Tee
        wrote on last edited by
        #3

        I didn't get your answer. I think the rule in web.config is a fixed rule. But in my case, the super user can change the user level right dynamically. For example, mr. A is a user level. Normally, user level can use PDA for reciving goods for all warehouse. However, the super user still can grant whethever this login name (a user level) can use which functions. For example Today he has only right to recieve goods from warehouse 1. However, for tomorrow, the super user will grant mr. A to recieve goods from warehouse 2, and super user will deny him to do so for the next couple day. The main problem here is that i can't assign particular groups (or role) for these functions. Because it depends on superuser decision. And for me having a group (or role) for each functions is not the best solution. Hope you can understand my need ^^'' -- modified at 2:14 Thursday 5th January, 2006

        M 1 Reply Last reply
        0
        • T Tee

          I didn't get your answer. I think the rule in web.config is a fixed rule. But in my case, the super user can change the user level right dynamically. For example, mr. A is a user level. Normally, user level can use PDA for reciving goods for all warehouse. However, the super user still can grant whethever this login name (a user level) can use which functions. For example Today he has only right to recieve goods from warehouse 1. However, for tomorrow, the super user will grant mr. A to recieve goods from warehouse 2, and super user will deny him to do so for the next couple day. The main problem here is that i can't assign particular groups (or role) for these functions. Because it depends on superuser decision. And for me having a group (or role) for each functions is not the best solution. Hope you can understand my need ^^'' -- modified at 2:14 Thursday 5th January, 2006

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          By this I mean, you can implement a custom authorization module which is responsible for checking on the current permissions that user owns. To define the permissions (or functionalities) that one has, you can use a data store like the web.config file, or database, or whatever you want. Then this module can base on this info at runtime to do its job.

          1 Reply Last reply
          0
          • T Tee

            I found many article talking about role-based authentication. But for my jobs, i need more. My application has 4 groups of user, said admin, super user, user, and reviewer. however, the super user can assign/change a different set of functions that each user can use. If i use the role-based authentication, i have to set one role of a function, then i might have 20+ role. Is there another way to implement such need ???

            I Offline
            I Offline
            Ista
            wrote on last edited by
            #5

            You can also extend the GenericIndentity and GenericPrinicipal to define your users. This way you can have your custom users and define those roles. Nick 1 line of code equals many bugs. So don't write any!!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups