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. how to manage multiple roles in asp.net

how to manage multiple roles in asp.net

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-netsecurityquestion
2 Posts 2 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.
  • J Offline
    J Offline
    jarajeshwaran
    wrote on last edited by
    #1

    Hi all, I am using windows authentication in my web application. I use SqlRoleProvider for implementing role management. After the authentication is done the navigation menu is generated based on the SqlRoleProvider. The above Role management works fine if the user has a single role assigned to him. How to handle the role management if the user is mapped against multiple roles. for example : the role clerk has access to create screen and the role admin has access to approve screen If a user is assigned role as clerk and admin he should be able to view both the screens. how can I achieve this. Is there any way I can dynamically generate the navigation menu.

    hi hi hi hi

    C 1 Reply Last reply
    0
    • J jarajeshwaran

      Hi all, I am using windows authentication in my web application. I use SqlRoleProvider for implementing role management. After the authentication is done the navigation menu is generated based on the SqlRoleProvider. The above Role management works fine if the user has a single role assigned to him. How to handle the role management if the user is mapped against multiple roles. for example : the role clerk has access to create screen and the role admin has access to approve screen If a user is assigned role as clerk and admin he should be able to view both the screens. how can I achieve this. Is there any way I can dynamically generate the navigation menu.

      hi hi hi hi

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I've done this in the past, but I never use the MS generated drivel, it always seems to end with hitting a brick wall unless you start by deciding your app will look and feel the way they decided it should. Perhaps you need to write your own permissions system ? It's not difficult.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      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