Interface IPrincipalAccessor
Accessor to get current System.Security.Principal.IPrincipal
Namespace: EPiServer.Security
Assembly: EPiServer.Framework.dll
Version: 10.10.4Syntax
public interface IPrincipalAccessor
Properties
Principal
Gets the System.Security.Principal.IPrincipal associated with current context.
Declaration
IPrincipal Principal { get; }
Property Value
Type | Description |
---|---|
System.Security.Principal.IPrincipal | The current principal. |
Remarks
This method will use user from the HttpContext if it exists, otherwise it will fallback to the the Thread.CurrentPrincipal setting.
When you get the current principal you are assured to always get a valid IPrincipal.