Visual Guard Class Library Documentation

VGHttpModule.LoadSecurity Method (HttpContext, String, VGAuthenticationMode, Boolean)

Loads the permissions of a user for the specified HttpContext.

public VGAuthorizationState LoadSecurity(
   HttpContext context,
   String name,
   VGAuthenticationMode mode,
   Boolean isAuthenticated
);

Parameters

context
A valid HttpContext representing the context for which the security is loaded.
name
the name of the user.
mode
the authentication mode used to authenticate the user.
isAuthenticated
Indicates the given user has been authenticated.

Return Value

A VGAuthorizationState representing the state of the authorization

Exceptions

Exception Type Condition
NotSupportedException

the repository does not support Visual Guard authentication mode.

ArgumentNullException

name or context is null.

ArgumentException

The name is longer than 64 characters

The name is empty.

VGConfigurationException The 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

VGHttpModule Class | Novalys.VisualGuard.Security.WebForm Namespace | VGHttpModule.LoadSecurity Overload List