By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,664 Members | 1,970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,664 IT Pros & Developers. It's quick & easy.

Help: Custom Forms Authentication User Object (iPrincipal?)

P: n/a
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!

Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

Nov 19 '05 #2

P: n/a
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.

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.