DevForce Help Reference
UserBase Class
Members 


The default System.Security.Principal.IPrincipal implementation within DevForce.
Syntax
'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  
Remarks
Represents the current user in DevForce application. When a custom IEntityLoginManager is used you may return either a UserBase or any standard or custom System.Security.Principal.IPrincipal implementation.

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.

Inheritance Hierarchy

System.Object
   IdeaBlade.EntityModel.UserBase

Requirements

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

See Also

Reference

UserBase Members
IdeaBlade.EntityModel Namespace

Send Feedback