IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : UserBase Class |
'Declaration
<DataContractAttribute()> <KnownTypeAttribute(MethodName="", Type=IdeaBlade.EntityModel.UserIdentity)> Public Class UserBase Implements System.Security.Principal.IIdentity, System.Security.Principal.IPrincipal
'Usage
Dim instance As UserBase
[DataContract()] [KnownType(MethodName="", Type=IdeaBlade.EntityModel.UserIdentity)] public class UserBase : System.Security.Principal.IIdentity, System.Security.Principal.IPrincipal
When a UserBase is returned by a Login call, it will be available in the client application through the Principal property on the IdeaBlade.EntityModel.Security.AuthenticationContext. For methods invoked on the server, the Thread.CurrentPrincipal will return a UserBase instance, as will the method's IPrincipal argument if specified.
If you are using ASP.NET security and have enabled the ASP.NET Role Manager you can use UserBase to perform role-based authorization within your application using either declarative or imperative security checks.
If you use the ASP.NET Profile feature the profile properties will automatically be set in your custom UserBase implementation. Any properties in your custom class which match the Profile properties in name and data type will be set by the AspAuthenticatingLoginManager. Be sure that your custom class extends UserBase.
You can also extend UserBase and AspAuthenticatingLoginManager to add additional application-specific properties and logic. Make sure that you decorate your custom UserBase type with a DataContract attribute.
System.Object
IdeaBlade.EntityModel.UserBase
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2