VGHttpModuleLoadSecurity Method (HttpContext, String, VGAuthenticationMode, Boolean)
|
Loads the permissions of a user for the specified HttpContext.
Namespace:
Novalys.VisualGuard.Security.WebForm
Assembly:
Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 2018.1.720.18 (2018.1.0720.18)
Syntax public VGAuthorizationState LoadSecurity(
HttpContext context,
string name,
VGAuthenticationMode mode,
bool isAuthenticated
)
Public Function LoadSecurity (
context As HttpContext,
name As String,
mode As VGAuthenticationMode,
isAuthenticated As Boolean
) As VGAuthorizationState
Parameters
- context
- Type: System.WebHttpContext
A valid HttpContext representing the context for which the security is loaded. - name
- Type: SystemString
the name of the user. - mode
- Type: Novalys.VisualGuard.SecurityVGAuthenticationMode
the authentication mode used to authenticate the user. - isAuthenticated
- Type: SystemBoolean
Indicates the given user has been authenticated.
Return Value
Type:
VGAuthorizationStateA
VGAuthorizationState representing the state of the authorization
Exceptions Exception | 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