Using a Custom Principal with Membership and Role Providers

D

David C

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
 
D

Dominick Baier [DevelopMentor]

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top