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
Inherited Members
Namespace: EPiServer.Security.Internal
Assembly: EPiServer.Framework.dll
Version: 10.10.4Syntax
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.