Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Help: Custom Forms Authentication User Object (iPrincipal?)

Reply
Thread Tools

Help: Custom Forms Authentication User Object (iPrincipal?)

 
 
CodeCowboy
Guest
Posts: n/a
 
      02-23-2005
I'm sure some of you have done this before and I've been perusing
through the forum trying to find some uncomplicated solution.

I am trying to extend the existing user.identity object.

I would like to add a bit of extra information to it such as:

User.Identity.FullName
User.Identity.Email
User.Identity.Organization

And the like.

My understanding is that I need to create an inherited version of the
iPrincipal object but the only code snippets I've seen have been ones
which weren't working properly to begin with.

If anyone has a VB example that would be even better for me as
(unfortunately) that is my fluent language.

Thanks in advance!

 
Reply With Quote
 
 
 
 
Wilco Bauwer
Guest
Posts: n/a
 
      02-23-2005
You could create your own implementation of a principal object, yes.
You could derive the principal from GenericPrinciple. Your principal
object could then aggregrate with a custom identity (derive from
GenericIdentity iirc). You could let this identity object the fields
you are interested in.

 
Reply With Quote
 
 
 
 
CodeCowboy
Guest
Posts: n/a
 
      02-23-2005
Thank you for your reply. I am seeking a working code example or a
link to an article with working code as I am rusty on inheritance from
disuse in day to day operations here.

I understand the general idea as described in both your post and my
own, but I need the specifics.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best practices for using forms authentication and security in a hosted env (was: Re: Using a Forms authentication in a shared hosting environment) JEFF ASP .Net 1 11-12-2007 07:00 PM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
Forms authentication - Multiple login forms based on directory acc Keltex ASP .Net Security 1 01-24-2006 03:06 PM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM
Forms Authentication, external authentication server, & rerouting to orig. req. URL Andrew Connell ASP .Net 1 10-21-2003 05:41 PM



Advertisments
 



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