November Happy Hour will be moved to Thursday December 5th.

Class FallbackPrincipal

Used to get a principal in cases where no user is available from http context.

Inheritance
System.Object
FallbackPrincipal
Namespace: EPiServer.Security.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public static class FallbackPrincipal : Object

Properties

AnonymousPrincipal

Gets a principal object representing the an anonoymous principal.

Declaration
public static IPrincipal AnonymousPrincipal { get; }
Property Value
Type Description
System.Security.Principal.IPrincipal

The anonymous principal.

Current

Gets current thread principal or an anonymus principal.

Declaration
public static IPrincipal Current { get; set; }
Property Value
Type Description
System.Security.Principal.IPrincipal
Remarks

When you get the current principal you are assured to always get a valid IPrincipal.