Click or drag to resize

AuthenticationHandlerTryGetPrincipal Method

Attempt to get current security principal for specified sessionID.

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public static bool TryGetPrincipal(
	Guid sessionID,
	bool useAlternate,
	out SecurityPrincipal securityPrincipal
)
View Source

Parameters

sessionID  Guid
Session ID to user.
useAlternate  Boolean
Indicate when to useSecurity Principles from alternate SecurityProvider
securityPrincipal  SecurityPrincipal
Principal of user with specified sessionID, if found.

Return Value

Boolean
true if principal was found for specified sessionID; otherwise, false.
See Also