Visual Guard Class Library Documentation

VGSecurityRuntime.LoadAnomymousSecurity Method ()

Loads the permissions for an anonymous session.

public void LoadAnomymousSecurity();

Remarks

The application supports the anonymous session when a role is specified as anonymous role for your applcation and the option

anonymousSessionSupported
of your Visual Guard configuration file is equal to true.

To define an anonymous role, you have to be connected to the repository with the Visual Guard console and modify the property

Anonymous Role
of your application.

After modifying this property, you have to regenerate the Visual Guard configuration file of your application or edit it to modify the option

anonymousSessionSupported
.

Exceptions

Exception Type Condition
VGAnonymousSessionNotAllowedException The application does not allowed anonymous session or the role granted to the anonymous session is not valid.
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

VGSecurityRuntime Class | Novalys.VisualGuard.Security Namespace | VGSecurityRuntime.LoadAnomymousSecurity Overload List | IsAnonymousSessionSupported