Using a Custom Principal with Membership and Role Providers

Discussion in 'ASP .Net Security' started by David C, Apr 4, 2006.

  1. David C

    David C Guest

    Hi All,

    I've been looking at the RoleProvider/MembershipProvider classes in ASP.Net
    2.0 and Ilike what I see. However I would like to use a custom principal
    object rather than the RolePrincipal. IS this possible in a neat, supported
    way?

    Thanks,

    DC
    David C, Apr 4, 2006
    #1
    1. Advertising

  2. well - it is RolePrincipal that gives you a lot of the role manager functionality
    like caching...

    that said - of course you can handle PostAuthenticateRequest (after RoleManager
    has done its work) and create a new Principal.

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

    > Hi All,
    >
    > I've been looking at the RoleProvider/MembershipProvider classes in
    > ASP.Net 2.0 and Ilike what I see. However I would like to use a custom
    > principal object rather than the RolePrincipal. IS this possible in a
    > neat, supported way?
    >
    > Thanks,
    >
    > DC
    >
    Dominick Baier [DevelopMentor], Apr 4, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    356
  2. padma
    Replies:
    3
    Views:
    395
    Victor Bazarov
    Oct 5, 2007
  3. Replies:
    5
    Views:
    421
  4. Bill

    Using Custom Membership/Role Providers?

    Bill, Dec 17, 2005, in forum: ASP .Net Security
    Replies:
    3
    Views:
    229
    Dominick Baier [DevelopMentor]
    Dec 17, 2005
  5. Replies:
    0
    Views:
    135
Loading...

Share This Page