Show / Hide Table of Contents

Class NSPrincipalAccessorBase

Inheritance
object
NSPrincipalAccessorBase
AsyncLocalPrincipalAccessor
ProcessPrincipalAccessor
Implements
INSPrincipalAccessor
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public abstract class NSPrincipalAccessorBase : INSPrincipalAccessor

Constructors

NSPrincipalAccessorBase()

Declaration
protected NSPrincipalAccessorBase()

Properties

User

Get the current user-

Declaration
public virtual ClaimsPrincipal User { get; }
Property Value
Type Description
ClaimsPrincipal

Methods

SignIn(ClaimsPrincipal)

Sign in with the current user.

Declaration
public abstract void SignIn(ClaimsPrincipal user)
Parameters
Type Name Description
ClaimsPrincipal user

SignInWithTemporaryUser(ClaimsPrincipal, bool)

Sign in with a temporary user

Declaration
public IDisposable SignInWithTemporaryUser(ClaimsPrincipal user, bool forceCleanStack = false)
Parameters
Type Name Description
ClaimsPrincipal user

User to set as temporary user

bool forceCleanStack

If true, the current user stack will be cleared for the corrent async local context, before setting the current user.

Returns
Type Description
IDisposable

Disposing the result dispoes of the current user and popps the stack

SignOut()

Sign out the current user.

Declaration
public abstract void SignOut()

Implements

INSPrincipalAccessor

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top