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. General Programming
  3. Design and Architecture
  4. Membership Provider and Permissions

Membership Provider and Permissions

Scheduled Pinned Locked Moved Design and Architecture
databasediscussion
4 Posts 2 Posters 14 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
    Tristan Rhodes
    wrote on last edited by
    #1

    Hi Guys, I'd like to make a blog / forum web app as research, and i'd like to use the (Sql)MembershipProvider to manage my users, but i'd like to tie Permission information to them. I had a few ideas, but wondered what the standard was - 1) Add a permission indicator to the Comment field Thoughts: Cheesy as hell, not particularly scaleable or searchable. 2) Create a seperate database and create both users at the same time. Thoughts: Seems nice on the surface, but i would be maintaining two databases, one with login credentials, and one with the user and additional data. 3) Extend the existing SQLMembershipProvider database to support permissions, and expand the "User" object to include permission level. Thoughts: Work, maintainability, and sabotaging something that already works. Plus, i would have to integrate both the DB's above, into a single entity. Doesn't scale well with the a permissions table either. 4) Seperate databases, like option 2, only with a Permissions table. Thoughts: Heavy work, i'd need to do some more research into permission sets, but I suspect this is probably how things are done at the moment. Hope you guys can shed some light on this. Regards Tristan Rhodes

    ------------------------------- Carrier Bags - 21st Century Tumbleweed.

    P 1 Reply Last reply
    0
    • T Tristan Rhodes

      Hi Guys, I'd like to make a blog / forum web app as research, and i'd like to use the (Sql)MembershipProvider to manage my users, but i'd like to tie Permission information to them. I had a few ideas, but wondered what the standard was - 1) Add a permission indicator to the Comment field Thoughts: Cheesy as hell, not particularly scaleable or searchable. 2) Create a seperate database and create both users at the same time. Thoughts: Seems nice on the surface, but i would be maintaining two databases, one with login credentials, and one with the user and additional data. 3) Extend the existing SQLMembershipProvider database to support permissions, and expand the "User" object to include permission level. Thoughts: Work, maintainability, and sabotaging something that already works. Plus, i would have to integrate both the DB's above, into a single entity. Doesn't scale well with the a permissions table either. 4) Seperate databases, like option 2, only with a Permissions table. Thoughts: Heavy work, i'd need to do some more research into permission sets, but I suspect this is probably how things are done at the moment. Hope you guys can shed some light on this. Regards Tristan Rhodes

      ------------------------------- Carrier Bags - 21st Century Tumbleweed.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      This sounds like a job for the RoleProvider. This link might give you some ideas: http://www.odetocode.com/Articles/427.aspx[^]

      Deja View - the feeling that you've seen this post before.

      T 1 Reply Last reply
      0
      • P Pete OHanlon

        This sounds like a job for the RoleProvider. This link might give you some ideas: http://www.odetocode.com/Articles/427.aspx[^]

        Deja View - the feeling that you've seen this post before.

        T Offline
        T Offline
        Tristan Rhodes
        wrote on last edited by
        #3

        Awesome - Didn't even know it existed :) Thanks. Tris

        ------------------------------- Carrier Bags - 21st Century Tumbleweed.

        P 1 Reply Last reply
        0
        • T Tristan Rhodes

          Awesome - Didn't even know it existed :) Thanks. Tris

          ------------------------------- Carrier Bags - 21st Century Tumbleweed.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          No bother - we're here to help.:-D

          Deja View - the feeling that you've seen this post before.

          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