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

Class FallbackPrincipal

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Used to get a principal in cases where no user is available from http context.

Inheritance
System.Object
FallbackPrincipal
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Security.Internal
Assembly: EPiServer.Framework.dll
Version: 10.10.4
Syntax
public static class FallbackPrincipal

Properties

AnonymousPrincipal

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.