Loads the permissions of the given WindowsIdentity.

Namespace: Novalys.VisualGuard.Security.WebForm
Assembly: Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 2017.0.101.17 (2017.0.101.17)

Syntax

C#
public VGAuthorizationState LoadSecurity(
	HttpContext context,
	WindowsIdentity identity
)
Visual Basic
Public Function LoadSecurity ( 
	context As HttpContext,
	identity As WindowsIdentity
) As VGAuthorizationState

Parameters

context
Type: System.Web..::..HttpContext
A valid HttpContext representing the context for which the security is loaded.
identity
Type: System.Security.Principal..::..WindowsIdentity
A WindowsIdentity object for which you want to load permissions.

Return Value

Type: VGAuthorizationState
A VGAuthorizationState representing the state of the authorization

Exceptions

ExceptionCondition
System..::..NotSupportedException

the repository does not support Visual Guard authentication mode.

System..::..ArgumentNullException

name or context is null.

System..::..ArgumentException

The name is longer than 64 characters

The name is empty.

Novalys.VisualGuard.Security..::..VGConfigurationExceptionThe configuration file is not valid

or

A problem occurs during the connection to the repository.

or

The version of the repository or the version of the permissions is not supported by the application.

See Also