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 assign roles to users

How to assign roles to users

Scheduled Pinned Locked Moved ASP.NET
securityhelptutorialquestion
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.
  • X Offline
    X Offline
    Xiaoming Qian
    wrote on last edited by
    #1

    The following is my Web.config file <location path="admin"> <system.web> <authorization> <allow roles="Admin" /> <deny users="*" /> </authorization> </system.web> </location> But in FormsAuthentications mechanism,I can't find how to and when to assign "Admin" role to Authenticate users. Can anyone help me? Any idea will be appropriate.

    M 1 Reply Last reply
    0
    • X Xiaoming Qian

      The following is my Web.config file <location path="admin"> <system.web> <authorization> <allow roles="Admin" /> <deny users="*" /> </authorization> </system.web> </location> But in FormsAuthentications mechanism,I can't find how to and when to assign "Admin" role to Authenticate users. Can anyone help me? Any idea will be appropriate.

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

      If you are using the ASP.NET 1.1, Heath's article[^] can help you tackle your question. If it's the version 2, you can see Managing Authorization Using ASP.NET Roles [^]

      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