Show / Hide Table of Contents

Interface INSPrincipalAccessor

Accessor for NetServer's current user.

Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public interface INSPrincipalAccessor

Properties

User

Get the current user-

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

Methods

SignIn(ClaimsPrincipal)

Sign in with the current user.

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

SignInWithTemporaryUser(ClaimsPrincipal, bool)

Sign in with a temporary user

Declaration
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
void SignOut()

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