Is it possible --- extending context.user.identity

Results 1 to 2 of 2

Thread: Is it possible --- extending context.user.identity

  1. #1
    Join Date
    Dec 1969

    Default Is it possible --- extending context.user.identity

    I currently use User.Identity.Name to display the currently authenticated user on my system but I need to know is it possible to easily extend context.user.identity?<BR>I&#039;m doing a forms authentication against a MS sql database and using VS.NET IDE w/ VB.NET, I need to return some extra data like BusinessAnalyst, manager, developer,...<BR>I would like to make these available through my application using eg:<BR>context.user.identity.BusinessAnalyst<BR>co ntext.user.identity.Manager<BR>context.user.identi ty.Developer<BR>...<BR><BR>Is this possible or is there another (and better) solution to do this?<BR><BR>thanks,<BR><BR>Jonathan

  2. #2
    Join Date
    Dec 1969

    Default RE: Is it possible --- extending context.user.iden

    You have 2 options:<BR>- "Roll Your Own" identity schema inheriting the built in stuff (never done it before, but i know its difficult)<BR>or<BR>- Store the extra information in the "UserSettings" of the Authentication Ticket (some code here:<BR><BR>I&#039;ve stored quite a bit of info in that one spot in one of my applications, worked out well [:)]

Posting Permissions

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