Authenticates a user for the specified HttpContext.
A VGAuthenticationState indicating if the authentication succeeds or not.
This method will replace the User property. When the authentication fails, the User property is set to null. For more information about this method, you can see Authenticate.
Exception Type | Condition |
---|---|
ArgumentException | The value of mode is equal to None or is a combination of several modes. - or- the name is an empty string or is longer than 64 characters.- or- the password is longer than 64 characters. |
ArgumentNullException | The name or the password or context is null (Nothing in VB) and the mode is not Windows. |
NotSupportedException |
the repository does not support the specified authentication mode. |
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. |
VGHttpModule Class | Novalys.VisualGuard.Security.WebForm Namespace