Show / Hide Table of Contents

Interface ITicketPrincipalCache

Interface called by authenticaiton system SoContext to handle cached user principles. Caching is done with user authenticating with ticket.

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

Methods

CachePrincipal(string, ClaimsPrincipal)

Cach a user principal and users info session state

Declaration
void CachePrincipal(string ticket, ClaimsPrincipal principal)
Parameters
Type Name Description
string ticket

Ticket for user to cache

ClaimsPrincipal principal

User's principal

Flush()

Flush the user cache

Declaration
void Flush()

TryGetCachedPrincipal(string, out ClaimsPrincipal)

Try to obtain users cahced information based on ticket

Declaration
bool TryGetCachedPrincipal(string ticket, out ClaimsPrincipal principal)
Parameters
Type Name Description
string ticket

Tiocket to look up

ClaimsPrincipal principal

Resolved principal

Returns
Type Description
bool

True if a ceched user was obtained.

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