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. |