Professional Web Applications Themes

Help hooking into 2.0 membership w/existing users, roles - ASP.NET Security

Hello - We have an existing ASP.NET 1.0 web site that already has a set of tables for Users (user id and password plus many other attributes), Roles, etc. We are trying to migrate to ASP.NET 2.0 and we're hoping to hook into or extend the memberhsip and security features that are part of the 2.0 feature set. Is this possible? And, if so, is it a difficult process? Are there any links or articles on how to accomplish this? I have searched around and have found some the explain how to extend the 2.0 stuff...but not with an already/existing ...

  1. #1

    Default Help hooking into 2.0 membership w/existing users, roles

    Hello -

    We have an existing ASP.NET 1.0 web site that already has a set of tables
    for Users (user id and password plus many other attributes), Roles, etc.

    We are trying to migrate to ASP.NET 2.0 and we're hoping to hook into or
    extend the memberhsip and security features that are part of the 2.0 feature
    set.

    Is this possible? And, if so, is it a difficult process? Are there any
    links or articles on how to accomplish this? I have searched around and have
    found some the explain how to extend the 2.0 stuff...but not with an
    already/existing database of users and roles.

    thanks for any help.
    - will
    dw Guest

  2. #2

    Default Re: Help hooking into 2.0 membership w/existing users, roles


    "dw" <microsoft.com> wrote in message
    news:com... 

    I'm assuming you are using sqlserver? Probably, the easiest thing to do
    would be to take the source to the Membership Provider Microsoft has so
    generously made availabe and modify it to access your tables instead. For
    my own purposes, I have a simple Membership Provider that I use that doesn't
    have all the bells and whistles microsoft provides.

    Good luck.


    PeterKellner Guest

  3. #3

    Default Re: Help hooking into 2.0 membership w/existing users, roles

    Yes, we're using SQL 2005. What we don't want to do, if possible, is to have
    to maintain two sets of User and UserRoles tables. We already have those
    tables in place and working with our asp.net 1.1 web site. Modifying the MS
    Membership Provider sounds like the right way to go, though I would be
    concerned about future updates from MS that we might not be able to implement
    because we have modified to use our own.

    Guess we'll see.

    Thanks for the feedback.
    - will 
    dw Guest

  4. #4

    Default Re: Help hooking into 2.0 membership w/existing users, roles

    I think you are OK with future updates as long as you role your own
    provider. They may add functionality, but I don't believe they will break
    anything existing. (but then again, I'm not the betting type).

    Good luck.

    "dw" <microsoft.com> wrote in message
    news:com... [/ref]



    PeterKellner Guest

  5. #5

    Default Re: Help hooking into 2.0 membership w/existing users, roles

    always ask yourself why you want to do that. It seems you have a working
    solution already - what do you gain from forcing this solution into the provider
    pattern??

    don't just do providers for providers sake -

    and btw - the login controls can also be used without a provider.

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com
     


    Dominick Guest

  6. #6

    Default Re: Help hooking into 2.0 membership w/existing users, roles

    I agree...but I have a boss that wants to force this new solution....so I
    don't have a choice. I am trying to reduce the potential risk and find an
    easy way to support the new providers.

    "Dominick Baier [DevelopMentor]" wrote:
     
    >
    >
    >[/ref]
    dw Guest

Similar Threads

  1. login/membership/roles
    By Les in forum ASP.NET Security
    Replies: 2
    Last Post: March 2nd, 03:27 PM
  2. Membership roles question
    By John in forum ASP.NET Security
    Replies: 2
    Last Post: December 19th, 12:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139